]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: Introduce get_current_ioprio()
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 20 Nov 2018 01:52:35 +0000 (10:52 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Nov 2018 02:03:46 +0000 (19:03 -0700)
commit64845a1ddd655574886eb48e9a5eaeeb9b05bf0d
tree25bc608fd44a569c9fefd6d89a13de734193555e
parente2b3fa5af70c1e646270f6c7c799414f5e904d7a
block: Introduce get_current_ioprio()

Define get_current_ioprio() as an inline helper to obtain the caller
I/O priority from its task I/O context. Use this helper in
blk_init_request_from_bio() to set a request ioprio.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/ioprio.h