Re: [PATCH v4 10/10] scsi: Implement blk_mq_ops.show_rq()

Omar Sandoval
2017-04-24T23:23:59Z

On Mon, Apr 24, 2017 at 07:19:50PM -0400, Martin K. Petersen wrote:
>
> Bart,
>
> > SCSI tracing has to be enabled before a test is started, produces a
> > huge amount of data, and deriving state information from a huge trace
> > is far from easy. The information in debugfs provides an easy to read
> > overview of the current state without having to analyze megabytes of
> > traces, without introducing any slowdown and without having to enable
> > any tracing mechanism from beforehand.
>
> Fair enough. Just seems like there's an obvious overlap in plumbing.
> Don't know if that can be leveraged instead of introducing something
> completely new?

The debugfs infrastructure is already there, and it already supports
showing requests. Bart is just exposing the SCSI information.