diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-14 04:30:12 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-15 16:18:02 -0400 |
commit | fb3ccb5da71273e7f0d50b50bc879e50cedd60e7 (patch) | |
tree | 157cf83be18f49d76a834b2e8893c4928b668e0f /include/linux/blkdev.h | |
parent | 24d2f90309b23f2cfe016b2aebc5f0d6e01c57fd (diff) |
block: all blk-mq requests are tagged
Instead of setting the REQ_QUEUED flag on each of them just take it into
account in the only macro checking it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index eb5e94803892..95bb551273ab 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1101,7 +1101,8 @@ static inline bool blk_needs_flush_plug(struct task_struct *tsk) | |||
1101 | /* | 1101 | /* |
1102 | * tag stuff | 1102 | * tag stuff |
1103 | */ | 1103 | */ |
1104 | #define blk_rq_tagged(rq) ((rq)->cmd_flags & REQ_QUEUED) | 1104 | #define blk_rq_tagged(rq) \ |
1105 | ((rq)->mq_ctx || ((rq)->cmd_flags & REQ_QUEUED)) | ||
1105 | extern int blk_queue_start_tag(struct request_queue *, struct request *); | 1106 | extern int blk_queue_start_tag(struct request_queue *, struct request *); |
1106 | extern struct request *blk_queue_find_tag(struct request_queue *, int); | 1107 | extern struct request *blk_queue_find_tag(struct request_queue *, int); |
1107 | extern void blk_queue_end_tag(struct request_queue *, struct request *); | 1108 | extern void blk_queue_end_tag(struct request_queue *, struct request *); |