Commit 739e44e7 authored by Jan Kara's avatar Jan Kara Committed by xiuhong.wang
Browse files

BACKPORT: block: Initialize bio priority earlier



Bio's IO priority needs to be initialized before we try to merge the bio
with other bios. Otherwise we could merge bios which would otherwise
receive different IO priorities leading to possible QoS issues.

Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Change-Id: I6a28ae88242c4ebe69569ebe898f2cbe1042c5e6
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220623074840.5960-8-jack@suse.cz


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit 9c6227e0)
[xiuhong: Resolved minor conflict in block/blk-mq.c]
Signed-off-by: default avatarXiuhong Wang <xiuhong.wang@unisoc.com>
parent b029b536
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment