Messages in this thread Patch in this message | | | From | Christoph Hellwig <> | Subject | [PATCH 7/7] block: all blk-mq requests are tagged | Date | Mon, 14 Apr 2014 10:30:12 +0200 |
| |
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> --- include/linux/blkdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 99617cf..7c0e72f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1102,7 +1102,8 @@ static inline bool blk_needs_flush_plug(struct task_struct *tsk) /* * tag stuff */ -#define blk_rq_tagged(rq) ((rq)->cmd_flags & REQ_QUEUED) +#define blk_rq_tagged(rq) \ + ((rq)->mq_ctx || ((rq)->cmd_flags & REQ_QUEUED)) extern int blk_queue_start_tag(struct request_queue *, struct request *); extern struct request *blk_queue_find_tag(struct request_queue *, int); extern void blk_queue_end_tag(struct request_queue *, struct request *); -- 1.7.10.4
| |