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
This commit is contained in:
Xin LI 2009-07-02 00:43:10 +00:00
parent 1635f0499e
commit c4f739ec0c

View file

@ -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);