summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-29 17:08:34 +0200
committerJens Axboe <axboe@kernel.dk>2020-06-29 17:56:18 +0200
commit42fdc5e49c2be97db112d410d07044e0e2c7d5bb (patch)
treef3923dcec161cef0dd153e8cfb5fe7cf062d3eb3 /block/blk-mq.h
parentblk-mq: put driver tag when this request is completed (diff)
downloadlinux-42fdc5e49c2be97db112d410d07044e0e2c7d5bb.tar.xz
linux-42fdc5e49c2be97db112d410d07044e0e2c7d5bb.zip
blk-mq: remove the BLK_MQ_REQ_INTERNAL flag
Just check for a non-NULL elevator directly to make the code more clear. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r--block/blk-mq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h
index b3ce0f3a2ad2..c6330335767c 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -159,7 +159,7 @@ struct blk_mq_alloc_data {
static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data *data)
{
- if (data->flags & BLK_MQ_REQ_INTERNAL)
+ if (data->q->elevator)
return data->hctx->sched_tags;
return data->hctx->tags;