linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] lpfc: lpfc no longer discovers lun 255
@ 2009-12-04 16:04 Michael Reed
  2009-12-04 17:41 ` James Smart
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Reed @ 2009-12-04 16:04 UTC (permalink / raw)
  To: linux-scsi, James Smart

A change in lun scanning range in scsi_scan.c ( ">" becomes ">=") results
in lpfc no longer discovering lun 255 of my test configuration.  This
patch adjusts lpfc_attr.c to discover lun 255 again.

scsi: host 3 channel 0 id 17 lun255 has a LUN larger than allowed by the host adapter


Signed-off-by: Michael Reed <mdr@sgi.com>


--- scsi-misc-2.6/drivers/scsi/lpfc/lpfc_attr.c	2009-12-01 16:18:40.000000000 -0600
+++ scsi-misc-2.6-modified/drivers/scsi/lpfc/lpfc_attr.c	2009-12-04 10:01:52.091503203 -0600
@@ -3099,10 +3099,10 @@ LPFC_VPORT_ATTR(discovery_threads, 32, 1
 
 /*
 # lpfc_max_luns: maximum allowed LUN.
-# Value range is [0,65535]. Default value is 255.
+# Value range is [0,65535]. Default value is 256, 1 greater than max lun number.
 # NOTE: The SCSI layer might probe all allowed LUN on some old targets.
 */
-LPFC_VPORT_ATTR_R(max_luns, 255, 0, 65535, "Maximum allowed LUN");
+LPFC_VPORT_ATTR_R(max_luns, 256, 0, 65535, "Maximum allowed LUN");
 
 /*
 # lpfc_poll_tmo: .Milliseconds driver will wait between polling FCP ring.

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

end of thread, other threads:[~2009-12-10 20:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 16:04 [PATCH 1/1] lpfc: lpfc no longer discovers lun 255 Michael Reed
2009-12-04 17:41 ` James Smart
2009-12-04 17:55   ` Michael Reed
2009-12-04 17:58     ` James Bottomley
2009-12-04 18:43       ` Michael Reed
2009-12-10 13:01         ` Brian King
2009-12-10 15:43           ` James Bottomley
2009-12-10 20:03             ` Ed Lin - PTU

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).