block: fold get_task_io_context into set_task_ioprio
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Dec 2021 06:31:28 +0000 (07:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Dec 2021 17:59:02 +0000 (10:59 -0700)
commit8472161b77c41d260c5ba0af6bf940269b297bb6
tree1e4aadcc25be7f8501fcdc2269b4b6c9e3cf7d08
parenta411cd3cfdc5bbd1329d5b33dbf39e2b5213969d
block: fold get_task_io_context into set_task_ioprio

Fold get_task_io_context into its only caller, and simplify the code
as no reference to the I/O context is required to just set the ioprio
field.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20211209063131.18537-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c