summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2019-09-30 11:25:49 +0300
committerJens Axboe <axboe@kernel.dk>2019-10-07 08:31:59 -0600
commit27a46989a82c71028f2ba15a3f2c8f30451fda33 (patch)
treea6736f5170679caad456035a11f3a17ba987a328 /block
parent7a18312c739aeace7c8ea448d39a0313d5ad5d5d (diff)
downloadlinux-27a46989a82c71028f2ba15a3f2c8f30451fda33.tar.gz
linux-27a46989a82c71028f2ba15a3f2c8f30451fda33.tar.bz2
linux-27a46989a82c71028f2ba15a3f2c8f30451fda33.zip
blk-mq: Inline status checkers
blk_mq_request_completed() and blk_mq_request_started() are short, inline it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c12
-rw-r--r--block/blk-mq.h9
2 files changed, 0 insertions, 21 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 9d932939b576..268a95e899b7 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -663,18 +663,6 @@ bool blk_mq_complete_request(struct request *rq)
}
EXPORT_SYMBOL(blk_mq_complete_request);
-int blk_mq_request_started(struct request *rq)
-{
- return blk_mq_rq_state(rq) != MQ_RQ_IDLE;
-}
-EXPORT_SYMBOL_GPL(blk_mq_request_started);
-
-int blk_mq_request_completed(struct request *rq)
-{
- return blk_mq_rq_state(rq) == MQ_RQ_COMPLETE;
-}
-EXPORT_SYMBOL_GPL(blk_mq_request_completed);
-
void blk_mq_start_request(struct request *rq)
{
struct request_queue *q = rq->q;
diff --git a/block/blk-mq.h b/block/blk-mq.h
index 32c62c64e6c2..eaaca8fc1c28 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)
{