Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 19:51:33 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244508 - head/sys/cam/scsi
Message-ID:  <201212201951.qBKJpXtt011032@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Dec 20 19:51:32 2012
New Revision: 244508
URL: http://svnweb.freebsd.org/changeset/base/244508

Log:
  Make SES driver to not fall out on some errors in Additional Status page.
  This allows CAM devices still get their physical paths even if status of
  later elements it corrupted.
  
  Sponsored by:	iXsystems, Inc.

Modified:
  head/sys/cam/scsi/scsi_enc_ses.c

Modified: head/sys/cam/scsi/scsi_enc_ses.c
==============================================================================
--- head/sys/cam/scsi/scsi_enc_ses.c	Thu Dec 20 19:47:46 2012	(r244507)
+++ head/sys/cam/scsi/scsi_enc_ses.c	Thu Dec 20 19:51:32 2012	(r244508)
@@ -1801,8 +1801,7 @@ ses_process_elm_addlstatus(enc_softc_t *
 			ENC_VLOG(enc, "Element %d Beyond End "
 			    "of Additional Element Status Descriptors\n",
 			    iter.global_element_index);
-			err = EIO;
-			goto out;
+			break;
 		}
 
 		/* Advance to the protocol data, skipping eip bytes if needed */
@@ -1831,7 +1830,7 @@ ses_process_elm_addlstatus(enc_softc_t *
 			ENC_VLOG(enc, "Element %d: Unknown Additional Element "
 			    "Protocol 0x%x\n", iter.global_element_index,
 			    ses_elm_addlstatus_proto(elmpriv->addl.hdr));
-			goto out;
+			break;
 		}
 
 		offset += proto_info_len;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212201951.qBKJpXtt011032>