Jan Kara a78418e6a0 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>
2022-06-27 06:29:12 -06:00
..
2022-05-23 14:04:14 -07:00
2022-05-24 18:30:27 -07:00
2022-06-16 16:59:28 -06:00
2022-06-27 06:29:12 -06:00
2022-03-21 16:48:55 -07:00
2022-06-27 06:29:11 -06:00
2021-12-06 13:18:47 -07:00
2020-03-17 20:55:21 +01:00
2022-03-31 12:58:38 -06:00
2022-03-24 19:37:53 -07:00
2021-09-14 00:22:15 -04:00
2022-02-02 07:49:59 -07:00
2022-03-21 16:48:55 -07:00
2021-10-18 06:17:01 -06:00
2022-06-27 06:29:11 -06:00
2022-03-07 12:48:35 -07:00
2022-02-02 07:49:59 -07:00
2022-03-07 12:48:35 -07:00