mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[SCSI] qla4xxx: fix queue depth setting
We want to set the queue depth to something reasonable - not the can_queue. Signed-off-by: Mike Christie <[email protected]> Cc: David Somayajulu <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
885ace9e2f
commit
d510d965e1
1 changed files with 3 additions and 1 deletions
|
|
@ -46,6 +46,8 @@ MODULE_PARM_DESC(ql4xextended_error_logging,
|
|||
|
||||
int ql4_mod_unload = 0;
|
||||
|
||||
#define QL4_DEF_QDEPTH 32
|
||||
|
||||
/*
|
||||
* SCSI host template entry points
|
||||
*/
|
||||
|
|
@ -1387,7 +1389,7 @@ static int qla4xxx_slave_alloc(struct scsi_device *sdev)
|
|||
|
||||
sdev->hostdata = ddb;
|
||||
sdev->tagged_supported = 1;
|
||||
scsi_activate_tcq(sdev, sdev->host->can_queue);
|
||||
scsi_activate_tcq(sdev, QL4_DEF_QDEPTH);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue