]> git.baikalelectronics.ru Git - kernel.git/commit
block: Return effective IO priority from get_current_ioprio()
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:27 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
commit0e7a55d9ffbcfea95fdf2e9baa561687ce95f488
tree93dd7989700fd8bd18b9dc98f79ffc1026d6ea55
parent4c77c03d7decd57e4cb14fed9adf3f228c012407
block: Return effective IO priority from get_current_ioprio()

get_current_ioprio() is used to initialize IO priority of various
requests. As such it should be returning the effective IO priority of
the task (i.e., reflecting the fact that unset IO priority should get
set based on task's CPU priority) so that the conversion is concentrated
in one place.

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