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 02:47:54 +0000 (19:47 -0700)
commitfd5c773047c93e5383e7618d3a5efd15cb61a27d
treed95e9f363f7f45ec395e34255a07fab092f55820
parent9cc1d6b1190fc67471b65f34a32881ce0e73cbdf
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