summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-06-04 11:23:39 -0600
committerJens Axboe <axboe@kernel.dk>2020-06-21 20:44:25 -0600
commit5a473e8311b582a40c10409a0f4bb39f42aa8123 (patch)
tree87f06802ab216f218f5d34d8c10323a3e580a736 /include/linux/blkdev.h
parent2e0464d48f32a9e78e2aa85cbbedc77ecbb6ed60 (diff)
downloadlwn-5a473e8311b582a40c10409a0f4bb39f42aa8123.tar.gz
lwn-5a473e8311b582a40c10409a0f4bb39f42aa8123.zip
block: provide plug based way of signaling forced no-wait semantics
Provide a way for the caller to specify that IO should be marked with REQ_NOWAIT to avoid blocking on allocation. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 8fd900998b4e..6e067dca94cf 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1189,6 +1189,7 @@ struct blk_plug {
struct list_head cb_list; /* md requires an unplug callback */
unsigned short rq_count;
bool multiple_queues;
+ bool nowait;
};
#define BLK_MAX_REQUEST_COUNT 16
#define BLK_PLUG_FLUSH_SIZE (128 * 1024)