svn commit: r196032 - in stable/7/sys: . contrib/pf dev/mpt
Xin LI
delphij at FreeBSD.org
Sun Aug 2 10:48:27 UTC 2009
Author: delphij
Date: Sun Aug 2 10:48:25 2009
New Revision: 196032
URL: http://svn.freebsd.org/changeset/base/196032
Log:
MFC r195275:
Use MPT_MAX_LUNS as maximium number of LUNs, not 7, for SAS and FC cases.
This matches Linux driver behavior (except SPI case).
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/mpt/mpt_cam.c
Modified: stable/7/sys/dev/mpt/mpt_cam.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt_cam.c Sun Aug 2 10:27:54 2009 (r196031)
+++ stable/7/sys/dev/mpt/mpt_cam.c Sun Aug 2 10:48:25 2009 (r196032)
@@ -3605,7 +3605,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-all
mailing list