Files
android_kernel_xiaomi_sm8450/drivers/md
Dennis Zhou 892ad71f62 dm: set the static flush bio device on demand
The next patch changes the macro bio_set_dev() to associate a bio with a
blkg based on the device set. However, dm creates a static bio to be
used as the basis for cloning empty flush bios on creation. The
bio_set_dev() call in alloc_dev() will cause problems with the next
patch adding association to bio_set_dev() because the call is before the
bdev is associated with a gendisk (bd_disk is %NULL). To get around
this, set the device on the static bio every time and use that to clone
to the other bios.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Cc: Alasdair Kergon <agk@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-12-07 22:26:37 -07:00
..
2018-04-30 11:51:39 -04:00
2018-10-25 11:17:40 -06:00
2018-10-25 11:17:40 -06:00
2016-11-01 09:43:26 -06:00
2018-11-16 08:34:06 -07:00
2018-11-16 08:34:06 -07:00
2017-06-09 09:27:32 -06:00
2018-10-11 11:36:09 -04:00
2018-06-08 11:59:51 -04:00
2018-10-18 09:41:25 -07:00
2018-11-01 19:59:53 -06:00