]> git.baikalelectronics.ru Git - kernel.git/commit
block: Always initialize bio IO priority on submit
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:34 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
commitd9d56ccb2a8dc98ecb94fd80edbd6856a3e47eee
tree16e66d891f33546c59e318c9d7f7052fa5e18f47
parent5a4c06f79457150013c955a5e679e2bb2e2e2238
block: Always initialize bio IO priority on submit

Currently, IO priority set in task's IO context is not reflected in the
bio->bi_ioprio for most IO (only io_uring and direct IO set it). This
results in odd results where process is submitting some bios with one
priority and other bios with a different (unset) priority and due to
differing priorities bios cannot be merged. Make sure bio->bi_ioprio is
always set on bio submission.

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220623074840.5960-9-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c