From: Quinn Tran <quinn.tran@qlogic.com>
To: Christoph Hellwig <hch@infradead.org>,
Dilip Uppugandla <dilip@purestorage.com>
Cc: Spencer Baugh <sbaugh@catern.com>,
Dept-Eng QLA2xxx Upstream <qla2xxx-upstream@qlogic.com>,
"James E.J. Bottomley" <JBottomley@odin.com>,
linux-scsi <linux-scsi@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Joern Engel <joern@purestorage.com>,
"Spencer Baugh" <Spencer.baugh@purestorage.com>,
"target-devel@vger.kernel.org" <target-devel@vger.kernel.org>,
Bart Van Assche <bart.vanassche@sandisk.com>
Subject: Re: [PATCH] qla2xxx: Return the fabric command state for non-task management requests
Date: Mon, 27 Jul 2015 23:25:30 +0000 [thread overview]
Message-ID: <D1DC074A.14AD9%quinn.tran@qlogic.com> (raw)
In-Reply-To: <20150725062926.GC26437@infradead.org>
Christoph,
Currently, the command state within TCM (se_cmd.t_state) only track
command states from the point of new to the Back End and from Back End up
to QLA driver. From the debug perspective, that¹s only half the picture.
The other half comes from qla2xxx¹s private command state provided by this
patch.
Having another trace point that happens 5~10 seconds ago might be
difficult to back track. For task management debugging, dumping the
current states (se_cmd + qla_tgt_cmd) of each command when the TMR is
received provides some benefit.
If you feel uncomfortable with the "driver defined binary", one
alternative would be to translate QLA¹s private command state into
se_cmd¹s new field. This new file would be modify by the fabric layer
only. This would limit any regression with existing se_cmd field
modification.
Regards,
Quinn Tran
On 7/24/15, 11:29 PM, "target-devel-owner@vger.kernel.org on behalf of
Christoph Hellwig" <target-devel-owner@vger.kernel.org on behalf of
hch@infradead.org> wrote:
>Which debug printk do you care about? I'd much prefer having a trace
>point inside the driver which could even pretty print it instead of the
>hack where a driver defined binary value is printed by the core.
>--
>To unsubscribe from this list: send the line "unsubscribe target-devel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-07-27 23:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-21 22:07 [PATCH] qla2xxx: Return the fabric command state for non-task management requests Spencer Baugh
2015-07-21 23:00 ` Himanshu Madhani
2015-07-23 9:46 ` Christoph Hellwig
[not found] ` <CAGxsngq1aBCoqmdSZcX+o=Ef=NyQSeunqDQuo2iwgmOAxsEqDw@mail.gmail.com>
2015-07-25 6:29 ` Christoph Hellwig
2015-07-27 23:25 ` Quinn Tran [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D1DC074A.14AD9%quinn.tran@qlogic.com \
--to=quinn.tran@qlogic.com \
--cc=JBottomley@odin.com \
--cc=Spencer.baugh@purestorage.com \
--cc=bart.vanassche@sandisk.com \
--cc=dilip@purestorage.com \
--cc=hch@infradead.org \
--cc=joern@purestorage.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=qla2xxx-upstream@qlogic.com \
--cc=sbaugh@catern.com \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox