Skip to content

Commit fb3ccb5

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent 24d2f90 commit fb3ccb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/blkdev.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,8 @@ static inline bool blk_needs_flush_plug(struct task_struct *tsk)
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 *);

0 commit comments

Comments
 (0)