]> git.baikalelectronics.ru Git - kernel.git/commit
block: Generalize get_current_ioprio() for any task
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:28 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
commitfe4d0fbd1f51d7f23233df0a4e8d3c4429c5b314
tree4b20c6a89835a6ffca1f5af19703a90622b3ec46
parent0e7a55d9ffbcfea95fdf2e9baa561687ce95f488
block: Generalize get_current_ioprio() for any task

get_current_ioprio() operates only on current task. We will need the
same functionality for other tasks as well. Generalize
get_current_ioprio() for that and also move the bulk out of the header
file because it is large enough.

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