mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[SCSI] bnx2i: Adjust sq_size module parametr to power of 2 only if a non-zero value is specified
This issue was discovered during 10G iscsi testing Default value of 'sq_size' module parameter is '0' which means driver should use predefined SQ queue size when setting up iscsi connection. roundup_pow_of_two(0) results in '1' and forces driver to setup connections with send queue size of '1' and results in lower performance as well Signed-off-by: Anil Veerabhadrappa <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
5d9e1fa99c
commit
f8c9abe797
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ static int __init bnx2i_mod_init(void)
|
|||
|
||||
printk(KERN_INFO "%s", version);
|
||||
|
||||
if (!is_power_of_2(sq_size))
|
||||
if (sq_size && !is_power_of_2(sq_size))
|
||||
sq_size = roundup_pow_of_two(sq_size);
|
||||
|
||||
mutex_init(&bnx2i_dev_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue