blk-mq-debugfs: Also show requests that have not yet been started
PATCH 1/1 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.
--- block/blk-mq-debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
block/blk-mq-debugfs.c +1 -2
@@ -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)); }
Signature · 1 line
2.19.0.605.g01d371f741-goog
Quoted 20 lines · Bart Van Assche
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.
Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Ming Lei <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>Cc Martin K. Petersen <[email protected]>--- block/blk-mq-debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)block/blk-mq-debugfs.c +0
-0
block/blk-mq-debugfs.c static void hctx_show_busy_rq(struct request *rq, void *data, bool reserved) · line 437
Quoted 9 lines
block/blk-mq-debugfs.c +1
-2@@ -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)); }
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking [email protected] +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)
Looks good,
Signature · 6 lines
Johannes Thumshirn Storage [email protected] +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg GF: Felix Imend�rffer, Jane Smithard, Graham Norton HRB 21284 (AG N�rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
Jens Axboe
maintainerQuoted 3 lines · Bart Van Assche
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.
Thanks, I like this better - applied. BTW, what's up with the reverse ordering on this:
Quoted 6 lines
Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Ming Lei <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>Cc Martin K. Petersen <[email protected]>
For some reason that really annoys me, and I see it in various patches these days. IMHO the SOB should be last, with whatever acks, reviews, CC, before that.
Signature · 1 line
Jens Axboe
Quoted 15 lines · Jens Axboe
Quoted 3 lines · Bart Van Assche
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.
Thanks, I like this better - applied. BTW, what's up with the reverse ordering on this:
Quoted 6 lines
Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Ming Lei <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>Cc Martin K. Petersen <[email protected]>
Quoted 3 lines
For some reason that really annoys me, and I see it in various patches these days. IMHO the SOB should be last, with whatever acks, reviews, CC, before that.
I could've sworn that this guideline was even documented somewhere, but I can't find it now ¯\_(ツ)_/¯
Jens Axboe
maintainerQuoted 16 lines · Omar Sandoval
Quoted 15 lines · Jens Axboe
Quoted 3 lines · Bart Van Assche
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.
Thanks, I like this better - applied. BTW, what's up with the reverse ordering on this:
Quoted 6 lines
Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Ming Lei <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>Cc Martin K. Petersen <[email protected]>
Quoted 6 lines
Quoted 3 lines
For some reason that really annoys me, and I see it in various patches these days. IMHO the SOB should be last, with whatever acks, reviews, CC, before that.
I could've sworn that this guideline was even documented somewhere, but I can't find it now ¯\_(ツ)_/¯
My guess is that it's some newer git thing - but if it is, it's really annoying and should be reverted. I end up fixing these up by hand.
Signature · 1 line
Jens Axboe
Quoted 21 lines · Jens Axboe
Quoted 20 lines · Omar Sandoval
Quoted 18 lines · Jens Axboe
Quoted 3 lines · Bart Van Assche
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.
Thanks, I like this better - applied. BTW, what's up with the reverse ordering on this:
Quoted 6 lines
Signed-off-by Bart Van Assche <[email protected]>Cc Christoph Hellwig <[email protected]>Cc Ming Lei <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Johannes Thumshirn <[email protected]>Cc Martin K. Petersen <[email protected]>For some reason that really annoys me, and I see it in various patches these days. IMHO the SOB should be last, with whatever acks, reviews, CC, before that.
Quoted 5 lines
Quoted 2 lines
I could've sworn that this guideline was even documented somewhere, but I can't find it now ¯\_(ツ)_/¯
My guess is that it's some newer git thing - but if it is, it's really annoying and should be reverted. I end up fixing these up by hand.
Isn't it the way patchwork adds the tags? And yes I also thought this is the correct way of adding the Ccs, etc..
Signature · 6 lines
Johannes Thumshirn Storage [email protected] +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850