linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] blk-mq: Export reading mq request state
@ 2019-03-08 17:40 Keith Busch
  2019-03-08 17:40 ` [PATCH 2/5] blk-mq: Export iterating queue requests Keith Busch
                   ` (5 more replies)
  0 siblings, 6 replies; 30+ messages in thread
From: Keith Busch @ 2019-03-08 17:40 UTC (permalink / raw)
  To: linux-nvme, linux-block, Jens Axboe
  Cc: Christoph Hellwig, Sagi Grimberg, Keith Busch

Drivers may need to know the state of their requets.

Signed-off-by: Keith Busch <keith.busch@intel.com>
---
 block/blk-mq.h         | 9 ---------
 include/linux/blkdev.h | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/block/blk-mq.h b/block/blk-mq.h
index c11353a3749d..99ab7e472e62 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -128,15 +128,6 @@ extern void blk_mq_hctx_kobj_init(struct blk_mq_hw_ctx *hctx);
 
 void blk_mq_release(struct request_queue *q);
 
-/**
- * blk_mq_rq_state() - read the current MQ_RQ_* state of a request
- * @rq: target request.
- */
-static inline enum mq_rq_state blk_mq_rq_state(struct request *rq)
-{
-	return READ_ONCE(rq->state);
-}
-
 static inline struct blk_mq_ctx *__blk_mq_get_ctx(struct request_queue *q,
 					   unsigned int cpu)
 {
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index faed9d9eb84c..db113aee48bb 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -241,6 +241,15 @@ struct request {
 	struct request *next_rq;
 };
 
+/**
+ * blk_mq_rq_state() - read the current MQ_RQ_* state of a request
+ * @rq: target request.
+ */
+static inline enum mq_rq_state blk_mq_rq_state(struct request *rq)
+{
+	return READ_ONCE(rq->state);
+}
+
 static inline bool blk_op_is_scsi(unsigned int op)
 {
 	return op == REQ_OP_SCSI_IN || op == REQ_OP_SCSI_OUT;
-- 
2.14.4


^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2019-03-28  3:32 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-08 17:40 [PATCH 1/5] blk-mq: Export reading mq request state Keith Busch
2019-03-08 17:40 ` [PATCH 2/5] blk-mq: Export iterating queue requests Keith Busch
2019-03-08 18:08   ` Bart Van Assche
2019-03-08 18:13     ` Keith Busch
2019-03-08 17:40 ` [PATCH 3/5] blk-mq: Iterate tagset over all requests Keith Busch
2019-03-08 17:40 ` [PATCH 4/5] nvme: Fail dead namespace's entered requests Keith Busch
2019-03-08 18:15   ` Bart Van Assche
2019-03-08 18:19     ` Keith Busch
2019-03-08 21:54       ` Bart Van Assche
2019-03-08 22:06         ` Keith Busch
2019-03-11  3:58   ` jianchao.wang
2019-03-11 15:42     ` Keith Busch
2019-03-08 17:40 ` [PATCH 5/5] nvme/pci: Remove queue IO flushing hack Keith Busch
2019-03-08 18:19   ` Bart Van Assche
2019-03-11 18:40   ` Christoph Hellwig
2019-03-11 19:37     ` Keith Busch
2019-03-27  8:31       ` Christoph Hellwig
2019-03-27 13:21         ` Keith Busch
2019-03-28  1:42           ` jianchao.wang
2019-03-28  3:33             ` Keith Busch
2019-03-08 18:07 ` [PATCH 1/5] blk-mq: Export reading mq request state Bart Van Assche
2019-03-08 18:15   ` Keith Busch
2019-03-08 18:42     ` Bart Van Assche
2019-03-08 19:19       ` Keith Busch
2019-03-08 20:47         ` Bart Van Assche
2019-03-08 21:14           ` Keith Busch
2019-03-08 21:25             ` Bart Van Assche
2019-03-08 21:31               ` Keith Busch
2019-03-08 20:21 ` Sagi Grimberg
2019-03-08 20:29   ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).