]> git.baikalelectronics.ru Git - kernel.git/commit
blk-ioprio: Convert from rqos policy to direct call
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:32 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
commit7ecb535d83257904fe31015af16807e155e6f2b1
tree4965afde9f626a0c326ad99297436b258fd93d5c
parent4b8fe0ec199d3c117dc6411bfe9dc121a10ab815
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.

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-7-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-ioprio.c
block/blk-ioprio.h
block/blk-mq.c