All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix the arguments order of a few iscsi_conn_printk() calls
@ 2014-02-07 16:18 Michele Baldessari
  2014-02-07 21:11 ` Mike Christie
  0 siblings, 1 reply; 3+ messages in thread
From: Michele Baldessari @ 2014-02-07 16:18 UTC (permalink / raw)
  To: open-iscsi
  Cc: trivial, chorn, linux-kernel, Mike Christie, Michele Baldessari

A few places had the opcode and itt arguments reversed.
Fix the order.

Reported-by: Josef Moellers <josef.moellers@ts.fujitsu.com>
Signed-off-by: Michele Baldessari <michele@acksyn.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 4046241..cd330c0 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.5.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix the arguments order of a few iscsi_conn_printk() calls
  2014-02-07 16:18 [PATCH] Fix the arguments order of a few iscsi_conn_printk() calls Michele Baldessari
@ 2014-02-07 21:11 ` Mike Christie
  2014-02-07 21:55   ` Michele Baldessari
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Christie @ 2014-02-07 21:11 UTC (permalink / raw)
  To: Michele Baldessari; +Cc: open-iscsi, trivial, chorn, linux-kernel

On 02/07/2014 10:18 AM, Michele Baldessari wrote:
> A few places had the opcode and itt arguments reversed.
> Fix the order.
> 
> Reported-by: Josef Moellers <josef.moellers@ts.fujitsu.com>
> Signed-off-by: Michele Baldessari <michele@acksyn.org>


Thanks. I just acked a patch to do the same:
https://lkml.org/lkml/2014/1/8/754

Have you been hitting that code and with what target and what type of
command?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix the arguments order of a few iscsi_conn_printk() calls
  2014-02-07 21:11 ` Mike Christie
@ 2014-02-07 21:55   ` Michele Baldessari
  0 siblings, 0 replies; 3+ messages in thread
From: Michele Baldessari @ 2014-02-07 21:55 UTC (permalink / raw)
  To: Mike Christie; +Cc: open-iscsi, trivial, chorn, linux-kernel

Hi Mike,

On Fri, Feb 07, 2014 at 03:11:32PM -0600, Mike Christie wrote:
> On 02/07/2014 10:18 AM, Michele Baldessari wrote:
> > A few places had the opcode and itt arguments reversed.
> > Fix the order.
> > 
> > Reported-by: Josef Moellers <josef.moellers@ts.fujitsu.com>
> > Signed-off-by: Michele Baldessari <michele@acksyn.org>
> 
> 
> Thanks. I just acked a patch to do the same:
> https://lkml.org/lkml/2014/1/8/754

ah ok. Too many mailing lists and I did not see it in git master yet ;)
 
> Have you been hitting that code and with what target and what type of
> command?

I was made aware of it by a colleague who was looking at code. So no
real-life situation here.
 
regards,
Michele
-- 
Michele Baldessari            <michele@acksyn.org>
C2A5 9DA3 9961 4FFB E01B  D0BC DDD4 DCCB 7515 5C6D

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-07 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 16:18 [PATCH] Fix the arguments order of a few iscsi_conn_printk() calls Michele Baldessari
2014-02-07 21:11 ` Mike Christie
2014-02-07 21:55   ` Michele Baldessari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.