* [PATCH] iscsi: fix wrong order of opcode and itt in iscsi_handle_reject prompt
@ 2014-01-09 2:21 Vaughan Cao
2014-01-09 6:50 ` Mike Christie
0 siblings, 1 reply; 2+ messages in thread
From: Vaughan Cao @ 2014-01-09 2:21 UTC (permalink / raw)
To: michaelc-hcNo3dDEHLuVc3sceRu5cw
Cc: JBottomley-bzQdu9zFT3WakBO8gow8eQ,
open-iscsi-/JYPxA39Uh5TLH3MbocFFw,
linux-scsi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
vaughan.cao-QHcLZuEGTsvQT0dZR+AlfA
This patch makes reject messages show right value for opcode and itt, which
is converse previously.
Signed-off-by: Vaughan Cao <vaughan.cao-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
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;
--
1.8.3.1
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iscsi: fix wrong order of opcode and itt in iscsi_handle_reject prompt
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
0 siblings, 0 replies; 2+ messages in thread
From: Mike Christie @ 2014-01-09 6:50 UTC (permalink / raw)
To: open-iscsi; +Cc: Vaughan Cao, JBottomley, linux-scsi, linux-kernel
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-09 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).