[SCSI] qla2xxx: Set host can_queue value based on available resources.
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 26 Feb 2014 09:15:04 +0000 (04:15 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:17:50 +0000 (10:17 -0700)
commit3b1bef644ea93339bbaffdcba99d5eed83751ba3
tree4a4de8b0dd0847aba0ccf92e28ea0aaa5c65c8f1
parent965c77a62b70fe3af3654a92f28d62857e7e6de7
[SCSI] qla2xxx: Set host can_queue value based on available resources.

Tell the mid-layer that number of commands we can queue is the available
resources we have minus a small amount for internal commands.

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_os.c