svn commit: r195275 - head/sys/dev/mpt
Xin LI
delphij at FreeBSD.org
Thu Jul 2 00:43:11 UTC 2009
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);
More information about the svn-src-head
mailing list