summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-05-22 08:55:22 -0600
committerJens Axboe <axboe@kernel.dk>2020-05-22 09:51:35 -0600
commitb7932d107d9148dc76a9b5a216e1db3fcf5a375f (patch)
tree76479862a8918ded453f6dc1f6f66daa190981e4
parenta34b83dc3788f3fbd7f40e4c6f7fc399ada328f3 (diff)
block: read-ahead submission should imply no-wait as well
As read-ahead is opportunistic, don't block for request allocation. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--include/linux/blk_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index ccb895f911b1..c296463c15eb 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -374,7 +374,8 @@ enum req_flag_bits {
#define REQ_INTEGRITY (1ULL << __REQ_INTEGRITY)
#define REQ_FUA (1ULL << __REQ_FUA)
#define REQ_PREFLUSH (1ULL << __REQ_PREFLUSH)
-#define REQ_RAHEAD (1ULL << __REQ_RAHEAD)
+#define REQ_RAHEAD \
+ ((1ULL << __REQ_RAHEAD) | (1ULL << __REQ_NOWAIT))
#define REQ_BACKGROUND (1ULL << __REQ_BACKGROUND)
#define REQ_NOWAIT (1ULL << __REQ_NOWAIT)
#define REQ_CGROUP_PUNT (1ULL << __REQ_CGROUP_PUNT)