OSDN Git Service

block: add REQ_HIPRI and inherit it from IOCB_HIPRI
authorJens Axboe <axboe@kernel.dk>
Wed, 29 Aug 2018 16:36:56 +0000 (10:36 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:45:00 +0000 (13:45 -0700)
commitd1e36282b0bbd5de6a9c4d5275e94ef3b3438f48
tree80328ea0526706f873113125f3bbee640615d3f2
parent3b6592f70ad7b4c24dd3eb2ac9bbe3353d02c992
block: add REQ_HIPRI and inherit it from IOCB_HIPRI

We use IOCB_HIPRI to poll for IO in the caller instead of scheduling.
This information is not available for (or after) IO submission. The
driver may make different queue choices based on the type of IO, so
make the fact that we will poll for this IO known to the lower layers
as well.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c
fs/direct-io.c
fs/iomap.c
include/linux/blk_types.h