1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195275

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