summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-11-02 21:29:49 +0300
committerJason Liu <jason.hui.liu@nxp.com>2018-10-29 11:10:38 +0800
commit8d78697293fced61b49d5a2fab8cfbc7642caa1f (patch)
tree6bf04ee23efff8c49206d1fffaaa84f9f0096347 /include/linux
parentdcd5bfb860c6f3aca45a624a100ae493eec359f7 (diff)
block: add REQ_DRV bit
Set aside a bit in the request/bio flags for driver use. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk> (cherry picked from commit 96222bcc732d0504363dc772637c50e53b4bd41e)
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blk_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index e157c8aef40d..86173bafcd39 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -234,6 +234,9 @@ enum req_flag_bits {
/* command specific flags for REQ_OP_WRITE_ZEROES: */
__REQ_NOUNMAP, /* do not free blocks when zeroing */
+ /* for driver use */
+ __REQ_DRV,
+
__REQ_NR_BITS, /* stops here */
};
@@ -254,6 +257,8 @@ enum req_flag_bits {
#define REQ_NOUNMAP (1ULL << __REQ_NOUNMAP)
+#define REQ_DRV (1ULL << __REQ_DRV)
+
#define REQ_FAILFAST_MASK \
(REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | REQ_FAILFAST_DRIVER)