summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-07-02 00:43:10 +0000
committerdelphij <delphij@FreeBSD.org>2009-07-02 00:43:10 +0000
commit7d633c8984e1716e902c83eb0351e9a53cf903e0 (patch)
treee649629c45def578eee64a2b5579b1296145c069 /sys/dev/mpt
parentaa8768059ba71c6aaa6101b02f468a88260809f7 (diff)
downloadFreeBSD-src-7d633c8984e1716e902c83eb0351e9a53cf903e0.zip
FreeBSD-src-7d633c8984e1716e902c83eb0351e9a53cf903e0.tar.gz
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
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_cam.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c
index b245f47..cd3048d 100644
--- a/sys/dev/mpt/mpt_cam.c
+++ b/sys/dev/mpt/mpt_cam.c
@@ -3588,7 +3588,10 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
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);
OpenPOWER on IntegriCloud