Re: [PATCH 5/6] blk-mq-debugfs: Show busy requests

2017-05-02 Thread Bart Van Assche
On Mon, 2017-05-01 at 17:17 -0700, Omar Sandoval wrote: > On Thu, Apr 27, 2017 at 08:54:36AM -0700, Bart Van Assche wrote: > > + if (q->queue_hw_ctx[rq->mq_ctx->index_hw] == ctx->hctx && > > This doesn't look right. ctx->index_hw is the index into hctx->ctxs for > this ctx. I think you mean

Re: [PATCH 5/6] blk-mq-debugfs: Show busy requests

2017-05-01 Thread Omar Sandoval
On Thu, Apr 27, 2017 at 08:54:36AM -0700, Bart Van Assche wrote: > Requests that got stuck in a block driver are neither on > blk_mq_ctx.rq_list nor on any hw dispatch queue. Make these > visible in debugfs through the "busy" attribute. > > Signed-off-by: Bart Van Assche

[PATCH 5/6] blk-mq-debugfs: Show busy requests

2017-04-27 Thread Bart Van Assche
Requests that got stuck in a block driver are neither on blk_mq_ctx.rq_list nor on any hw dispatch queue. Make these visible in debugfs through the "busy" attribute. Signed-off-by: Bart Van Assche Cc: Omar Sandoval Cc: Hannes Reinecke