History

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.

Christoph Hellwig committed 12 years ago

Commit fb3ccb51 parent 24d2f901 file · +2 −1Browse files

Showing the changes to include/linux/blkdev.h (1 of 1 file). Show all

Unified · Split

include/linux/blkdev.h+2−1
@@ -1101,7 +1101,8 @@ static inline bool blk_needs_flush_plug(struct task_struct *tsk) · 1100 unmodified lines
11011101 /*
11021102 * tag stuff
11031103 */
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))
11051106 extern int blk_queue_start_tag(struct request_queue *, struct request *);
11061107 extern struct request *blk_queue_find_tag(struct request_queue *, int);
11071108 extern void blk_queue_end_tag(struct request_queue *, struct request *);