From c4f739ec0c5b99bce04bc2eaac606faee623dda0 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Thu, 2 Jul 2009 00:43:10 +0000 Subject: [PATCH] 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 --- sys/dev/mpt/mpt_cam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c index b245f476bb0..cd3048de664 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);