Mikulas Patocka 45354f1eb6 dm bufio: don't embed a bio in the dm_buffer structure
The bio structure consumes a substantial part of dm_buffer.  The bio
structure is only needed when doing I/O on the buffer, thus we don't
have to embed it in the buffer.

Allocate the bio structure only when doing I/O.

We don't need to create a bio_set because, in case of allocation
failure, dm-bufio falls back to using dm-io (which keeps its own
bio_set).

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2018-04-03 15:04:29 -04:00
..
2016-11-01 09:43:26 -06:00
2018-04-03 15:04:19 -04:00
2018-02-04 11:16:35 -08:00
2017-06-09 09:27:32 -06:00
2018-01-17 09:16:00 -05:00
2018-01-17 09:16:00 -05:00
2018-02-25 10:44:39 -08:00