From: Himanshu Madhani <himanshu.madhani@qlogic.com>
To: 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>
Cc: Joern Engel <joern@purestorage.com>,
Spencer Baugh <Spencer.baugh@purestorage.com>,
Dilip Kumar Uppugandla <dilip@purestorage.com>
Subject: Re: [PATCH] qla2xxx: Return the fabric command state for non-task management requests
Date: Tue, 21 Jul 2015 23:00:38 +0000 [thread overview]
Message-ID: <D1D41CC0.A5C4E%himanshu.madhani@qlogic.com> (raw)
In-Reply-To: <1437516477-30554-3-git-send-email-sbaugh@catern.com>
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]
On 7/21/15, 3:07 PM, "Spencer Baugh" <sbaugh@catern.com> wrote:
>From: Dilip Kumar Uppugandla <dilip@purestorage.com>
>
>Invoking get_cmd_state for qla2xxx always returns 0. Instead change it
>to return the actual fabric state from qla_tgt_cmd. This will help with
>debugging.
>
>Signed-off-by: Dilip Kumar Uppugandla <dilip@purestorage.com>
>Signed-off-by: Spencer Baugh <sbaugh@catern.com>
>---
> drivers/scsi/qla2xxx/tcm_qla2xxx.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
>diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
>b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
>index d9a8c60..e859586 100644
>--- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c
>+++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c
>@@ -420,6 +420,12 @@ static void
>tcm_qla2xxx_set_default_node_attrs(struct se_node_acl *nacl)
>
> static int tcm_qla2xxx_get_cmd_state(struct se_cmd *se_cmd)
> {
>+ if (!(se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB)) {
>+ struct qla_tgt_cmd *cmd = container_of(se_cmd,
>+ struct qla_tgt_cmd, se_cmd);
>+ return cmd->state;
>+ }
>+
> return 0;
> }
>
>--
>2.4.3
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
Looks Good.
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
>
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 4742 bytes --]
next prev parent reply other threads:[~2015-07-21 23:00 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 [this message]
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
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=D1D41CC0.A5C4E%himanshu.madhani@qlogic.com \
--to=himanshu.madhani@qlogic.com \
--cc=JBottomley@odin.com \
--cc=Spencer.baugh@purestorage.com \
--cc=dilip@purestorage.com \
--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 \
/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