]> git.baikalelectronics.ru Git - kernel.git/commit
qla1280: Don't allocate 512kb of host tags
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 27 Apr 2016 08:48:52 +0000 (10:48 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 30 Apr 2016 16:25:26 +0000 (09:25 -0700)
commit89c1bda774d4da0535aac5935fec86c31b6f056e
treefa0574c4f44845c1ef348e2cca7ea894d603e338
parent86006c2d29135d9ea30c7ce53019f055e421fe1a
qla1280: Don't allocate 512kb of host tags

The qla1280 driver sets the scsi_host_template's can_queue field to 0xfffff
which results in an allocation failure when allocating the block layer tags
for the driver's queues. This was introduced with the change for host wide
tags in commit 8ace2a886b0 - "scsi: use host wide tags by default".

Reduce can_queue to MAX_OUTSTANDING_COMMANDS (512) to solve the allocation
error.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Fixes: 8ace2a886b0 - "scsi: use host wide tags by default"
Cc: stable@vger.kernel.org # v4.4
Cc: Laura Abbott <labbott@redhat.com>
Cc: Michael Reed <mdr@sgi.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <jejb@linux.vnet.ibm.com>
drivers/scsi/qla1280.c