Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jul 2009 00:43:11 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r195275 - head/sys/dev/mpt
Message-ID:  <200907020043.n620hBFS028827@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu Jul  2 00:43:10 2009
New Revision: 195275
URL: http://svn.freebsd.org/changeset/base/195275

Log:
  Use MPT_MAX_LUNS as maximium number of LUNs, not 7, for SAS and FC cases.
  This matches Linux driver behavior.
  
  Discussed with:	scottl
  Approved by:	re (kensmith)
  MFC after:	1 month

Modified:
  head/sys/dev/mpt/mpt_cam.c

Modified: head/sys/dev/mpt/mpt_cam.c
==============================================================================
--- head/sys/dev/mpt/mpt_cam.c	Thu Jul  2 00:41:37 2009	(r195274)
+++ head/sys/dev/mpt/mpt_cam.c	Thu Jul  2 00:43:10 2009	(r195275)
@@ -3588,7 +3588,10 @@ mpt_action(struct cam_sim *sim, union cc
 		if (mpt->is_spi && cpi->max_target > 15) {
 			cpi->max_target = 15;
 		}
-		cpi->max_lun = 7;
+		if (mpt->is_spi)
+			cpi->max_lun = 7;
+		else
+			cpi->max_lun = MPT_MAX_LUNS;
 		cpi->initiator_id = mpt->mpt_ini_id;
 		cpi->bus_id = cam_sim_bus(sim);
 



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