]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
block: add REQ_DRV bit
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Nov 2017 18:29:49 +0000 (21:29 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Nov 2017 16:31:48 +0000 (10:31 -0600)
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>
include/linux/blk_types.h

index c4c6c8bced2e1c201db2af483c85fb54e6c02306..1b04085255fb37507ba92e3cc827b1057e88b087 100644 (file)
@@ -229,6 +229,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 */
 };
 
@@ -249,6 +252,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)