]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_scan: fix queue depth initialisation problem
authorJames Bottomley <JBottomley@Odin.com>
Sun, 26 Apr 2015 18:52:46 +0000 (11:52 -0700)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 25 May 2015 15:46:24 +0000 (08:46 -0700)
commitfe57eb8773a26cd1efcf9bf86b238cf702ff5286
treee25e3557892e8c698036bf5d2233d14c640a03fd
parente3de2a91d0fabbb6b05ad09cd6aedc17467dccd2
scsi_scan: fix queue depth initialisation problem

Currently we blindly use the value of cmd_per_lun as the initial setting for
queue_depth.  This fails miserably (hangs the system) if it is zero, which is
the default value for anything uninitialised in the template.  The net result
is that every host template has to set a value for cmd_per_lun.  Instead, use
a default value of 1 if the actual value is unset.  This should pave the way
for removing cmd_per_lun from all the templates and eventually from SCSI
itself.

Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_scan.c