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

BACKPORT: blk-ioprio: Convert from rqos policy to direct call



Convert blk-ioprio handling from a rqos policy to a direct call from
blk_mq_submit_bio(). Firstly, blk-ioprio is not much of a rqos policy
anyway, it just needs a hook in bio submission path to set the bio's IO
priority. Secondly, the rqos .track hook gets actually called too late
for blk-ioprio purposes and introducing a special rqos hook just for
blk-ioprio looks even weirder.

Bug: 307161346
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Change-Id: I0fdc6ab21f34a5fa2c919d8dc21f3e1fb1bc4be3
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-7-jack@suse.cz


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