summaryrefslogtreecommitdiff
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2018-12-05 20:10:30 +0300
committerJens Axboe <axboe@kernel.dk>2018-12-08 08:26:37 +0300
commit892ad71f622bbf39c6de321d5ca9b0fdec237c24 (patch)
treee23362c12d2d65a4ffeaef92bbc196960fb42893 /block/blk-iolatency.c
parent2268c0feb0ffb1c1bb6e1d4d5505d30f485aa77b (diff)
downloadlinux-892ad71f622bbf39c6de321d5ca9b0fdec237c24.tar.xz
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>
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions