summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-sched.c
diff options
context:
space:
mode:
authorXianting Tian <tian.xianting@h3c.com>2020-08-27 08:34:17 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-02 00:49:26 +0200
commite44a6a2359808e0b97ff894569748ad2593b06f9 (patch)
treecb0fdd71dd263b3a88f83fa87be32d8239828118 /block/blk-mq-sched.c
parentblock: Remove blk_mq_attempt_merge() function (diff)
downloadlinux-e44a6a2359808e0b97ff894569748ad2593b06f9.tar.xz
linux-e44a6a2359808e0b97ff894569748ad2593b06f9.zip
blk-mq: use BLK_MQ_NO_TAG for no tag
Replace various magic -1 constants for tags with BLK_MQ_NO_TAG. Signed-off-by: Xianting Tian <tian.xianting@h3c.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sched.c')
-rw-r--r--block/blk-mq-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c
index 205d9716f7a5..501a85ceaccb 100644
--- a/block/blk-mq-sched.c
+++ b/block/blk-mq-sched.c
@@ -475,7 +475,7 @@ void blk_mq_sched_insert_request(struct request *rq, bool at_head,
goto run;
}
- WARN_ON(e && (rq->tag != -1));
+ WARN_ON(e && (rq->tag != BLK_MQ_NO_TAG));
if (blk_mq_sched_bypass_insert(hctx, !!e, rq)) {
/*