Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Hellwig and committed by
Jens Axboe
fb3ccb5d 24d2f903

+2 -1
+2 -1
include/linux/blkdev.h
··· 1101 1101 /* 1102 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 1106 extern int blk_queue_start_tag(struct request_queue *, struct request *); 1106 1107 extern struct request *blk_queue_find_tag(struct request_queue *, int); 1107 1108 extern void blk_queue_end_tag(struct request_queue *, struct request *);