public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [1/8] zfcp: several bug fixes
@ 2005-06-13 10:45 Andreas Herrmann
  2005-06-13 10:58 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Herrmann @ 2005-06-13 10:45 UTC (permalink / raw)
  To: James Bottomley; +Cc: Linux SCSI

s is patch 1 of 8 in a series of zfcp bug fixes.  Patches are based
on 2.6.12-rc6 plus "remove flags_dump feature"-patch from June, 10th.

This one fixes the handling of failed requests for GID_PN nameserver
command:
Set ZFCP_STATUS_PORT_INVALID_WWPN only if indicated by response
payload for GID_PN nameserver command and not if fsf request fails.


Regards,

Andreas

 
zfcp: fix wrong handling of failed requests for GID_PN command

Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>

diff -u linux-2.6.12-rc6/drivers/s390/scsi-orig/zfcp_aux.c linux-2.6.12-rc6/drivers/s390/scsi/zfcp_aux.c
--- linux-2.6.12-rc6/drivers/s390/scsi-orig/zfcp_aux.c	2005-06-11 22:04:32.062612336 +0200
+++ linux-2.6.12-rc6/drivers/s390/scsi/zfcp_aux.c	2005-06-11 22:05:03.961762928 +0200
@@ -1753,7 +1753,10 @@
 	ct_iu_req = zfcp_sg_to_address(ct->req);
 	ct_iu_resp = zfcp_sg_to_address(ct->resp);
 
-	if ((ct->status != 0) || zfcp_check_ct_response(&ct_iu_resp->header)) {
+	if (ct->status != 0)
+		goto failed;
+
+	if (zfcp_check_ct_response(&ct_iu_resp->header)) {
 		/* FIXME: do we need some specific erp entry points */
 		atomic_set_mask(ZFCP_STATUS_PORT_INVALID_WWPN, &port->status);
 		goto failed;


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

* Re: [PATCH] [1/8] zfcp: several bug fixes
  2005-06-13 10:45 [PATCH] [1/8] zfcp: several bug fixes Andreas Herrmann
@ 2005-06-13 10:58 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2005-06-13 10:58 UTC (permalink / raw)
  To: Andreas Herrmann; +Cc: James Bottomley, Linux SCSI

please give each patch a distinct subject line that describes it.  It's
what will end up in the git log summary.


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

end of thread, other threads:[~2005-06-13 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13 10:45 [PATCH] [1/8] zfcp: several bug fixes Andreas Herrmann
2005-06-13 10:58 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox