diff options
author | Bart Van Assche <bvanassche@acm.org> | 2018-10-04 19:35:24 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-05 16:16:58 +0200 |
commit | 6d8623a71135d8e2d397c1534f35e04dcf867749 (patch) | |
tree | cc2ed905f27355a24428ad181a7486ff849bb865 /block/blk-mq-debugfs.c | |
parent | Merge branch 'nvme-4.20' of git://git.infradead.org/nvme into for-4.20/block (diff) | |
download | linux-6d8623a71135d8e2d397c1534f35e04dcf867749.tar.xz linux-6d8623a71135d8e2d397c1534f35e04dcf867749.zip |
blk-mq-debugfs: Also show requests that have not yet been started
When debugging e.g. the SCSI timeout handler it is important that
requests that have not yet been started or that already have
completed are also reported through debugfs.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-debugfs.c')
-rw-r--r-- | block/blk-mq-debugfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index a5ea86835fcb..41b86f50d126 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -431,8 +431,7 @@ static void hctx_show_busy_rq(struct request *rq, void *data, bool reserved) { const struct show_busy_params *params = data; - if (blk_mq_map_queue(rq->q, rq->mq_ctx->cpu) == params->hctx && - blk_mq_rq_state(rq) != MQ_RQ_IDLE) + if (blk_mq_map_queue(rq->q, rq->mq_ctx->cpu) == params->hctx) __blk_mq_debugfs_rq_show(params->m, list_entry_rq(&rq->queuelist)); } |