mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
[SCSI] megaraid_sas: Fix max_sectors for IEEE SGL
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
1ac515ef3f
commit
42a8d2b34d
@ -723,6 +723,7 @@ struct megasas_ctrl_info {
|
||||
MEGASAS_MAX_DEV_PER_CHANNEL)
|
||||
|
||||
#define MEGASAS_MAX_SECTORS (2*1024)
|
||||
#define MEGASAS_MAX_SECTORS_IEEE (2*128)
|
||||
#define MEGASAS_DBG_LVL 1
|
||||
|
||||
#define MEGASAS_FW_BUSY 1
|
||||
|
@ -3824,6 +3824,10 @@ static int megasas_io_attach(struct megasas_instance *instance)
|
||||
instance->max_fw_cmds - MEGASAS_INT_CMDS;
|
||||
host->this_id = instance->init_id;
|
||||
host->sg_tablesize = instance->max_num_sge;
|
||||
|
||||
if (instance->fw_support_ieee)
|
||||
instance->max_sectors_per_req = MEGASAS_MAX_SECTORS_IEEE;
|
||||
|
||||
/*
|
||||
* Check if the module parameter value for max_sectors can be used
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user