[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1412783736-18115-3-git-send-email-m@bjorling.me>
Date: Wed, 8 Oct 2014 17:55:33 +0200
From: Matias Bjørling <m@...rling.me>
To: thornber@...hat.com, snitzer@...hat.com, hch@...radead.org,
hayakawa@...inux.co.jp, axboe@...com, andy@...off.com,
dm-devel@...hat.com, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, bvanassche@....org,
linux-nvme@...ts.infradead.org
Cc: jmad@....dk, Matias Bjørling <m@...rling.me>
Subject: [PATCH 2/5] block: extend rq_flag_bits
From: Jesper Madsen <jmad@....dk>
The rq_flag_bits is extended by REQ_NVM and REQ_NVM_MAPPED
REQ_NVM is used to detect request have through LightNVM on submission, and can
be detected on completion.
REQ_NVM_MAPPED is used to detect if request have mapped appropriately through
LightNVM.
The latter is added temponarily to debug the LightNVM key-value target and will
be removed later.
Signed-off-by: Matias Bjørling <m@...rling.me>
---
include/linux/blk_types.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 66c2167..b1d2f4d 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -191,6 +191,8 @@ enum rq_flag_bits {
__REQ_END, /* last of chain of requests */
__REQ_HASHED, /* on IO scheduler merge hash */
__REQ_MQ_INFLIGHT, /* track inflight for MQ */
+ __REQ_NVM, /* request is queued via lightnvm */
+ __REQ_NVM_MAPPED, /* lightnvm mapped this request */
__REQ_NR_BITS, /* stops here */
};
@@ -245,5 +247,7 @@ enum rq_flag_bits {
#define REQ_END (1ULL << __REQ_END)
#define REQ_HASHED (1ULL << __REQ_HASHED)
#define REQ_MQ_INFLIGHT (1ULL << __REQ_MQ_INFLIGHT)
+#define REQ_NVM (1ULL << __REQ_NVM)
+#define REQ_NVM_MAPPED (1ULL << __REQ_NVM_MAPPED)
#endif /* __LINUX_BLK_TYPES_H */
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists