From: Mike Christie <michaelc@cs.wisc.edu>
To: open-iscsi@googlegroups.com
Cc: Vaughan Cao <vaughan.cao@oracle.com>,
JBottomley@parallels.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iscsi: fix wrong order of opcode and itt in iscsi_handle_reject prompt
Date: Thu, 09 Jan 2014 00:50:54 -0600 [thread overview]
Message-ID: <52CE46CE.2030903@cs.wisc.edu> (raw)
In-Reply-To: <1389234094-6134-1-git-send-email-vaughan.cao@oracle.com>
On 01/08/2014 08:21 PM, Vaughan Cao wrote:
> This patch makes reject messages show right value for opcode and itt, which
> is converse previously.
>
> Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com>
> ---
> drivers/scsi/libiscsi.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
> index e399561..27547ff 100644
> --- a/drivers/scsi/libiscsi.c
> +++ b/drivers/scsi/libiscsi.c
> @@ -1013,13 +1013,13 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
> iscsi_conn_printk(KERN_ERR, conn,
> "pdu (op 0x%x itt 0x%x) rejected "
> "due to DataDigest error.\n",
> - rejected_pdu.itt, opcode);
> + opcode, rejected_pdu.itt);
> break;
> case ISCSI_REASON_IMM_CMD_REJECT:
> iscsi_conn_printk(KERN_ERR, conn,
> "pdu (op 0x%x itt 0x%x) rejected. Too many "
> "immediate commands.\n",
> - rejected_pdu.itt, opcode);
> + opcode, rejected_pdu.itt);
> /*
> * We only send one TMF at a time so if the target could not
> * handle it, then it should get fixed (RFC mandates that
> @@ -1059,8 +1059,8 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
> default:
> iscsi_conn_printk(KERN_ERR, conn,
> "pdu (op 0x%x itt 0x%x) rejected. Reason "
> - "code 0x%x\n", rejected_pdu.itt,
> - rejected_pdu.opcode, reject->reason);
> + "code 0x%x\n", rejected_pdu.opcode,
> + rejected_pdu.itt, reject->reason);
> break;
> }
> return rc;
>
Thanks.
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
prev parent reply other threads:[~2014-01-09 6:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 2:21 [PATCH] iscsi: fix wrong order of opcode and itt in iscsi_handle_reject prompt Vaughan Cao
2014-01-09 6:50 ` Mike Christie [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=52CE46CE.2030903@cs.wisc.edu \
--to=michaelc@cs.wisc.edu \
--cc=JBottomley@parallels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=open-iscsi@googlegroups.com \
--cc=vaughan.cao@oracle.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;
as well as URLs for NNTP newsgroup(s).