BACKPORT: 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. Bug: 315228086 Bug: 307161346 Reviewed-by:Damien Le Moal <damien.lemoal@opensource.wdc.com> Tested-by:
Damien Le Moal <damien.lemoal@opensource.wdc.com> Change-Id: I7be765392f9072564ea49fb32b7814e10c4b5d74 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> (cherry picked from commit a78418e6) Signed-off-by:
Xiuhong Wang <xiuhong.wang@unisoc.com>
Loading
Please sign in to comment