]> Git Repo - linux.git/commitdiff
qla1280: Don't allocate 512kb of host tags
authorJohannes Thumshirn <[email protected]>
Wed, 27 Apr 2016 08:48:52 +0000 (10:48 +0200)
committerJames Bottomley <[email protected]>
Sat, 30 Apr 2016 16:25:26 +0000 (09:25 -0700)
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 64d513ac31b - "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 <[email protected]>
Fixes: 64d513ac31b - "scsi: use host wide tags by default"
Cc: [email protected] # v4.4
Cc: Laura Abbott <[email protected]>
Cc: Michael Reed <[email protected]>
Reviewed-by: Laurence Oberman <[email protected]>
Reviewed-by: Lee Duncan <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
drivers/scsi/qla1280.c

index 5d0ec42a9317d6a08a2b99fd424339c4554f4787..634254a523013a557327a7b38825924de7e71b6c 100644 (file)
@@ -4214,7 +4214,7 @@ static struct scsi_host_template qla1280_driver_template = {
        .eh_bus_reset_handler   = qla1280_eh_bus_reset,
        .eh_host_reset_handler  = qla1280_eh_adapter_reset,
        .bios_param             = qla1280_biosparam,
-       .can_queue              = 0xfffff,
+       .can_queue              = MAX_OUTSTANDING_COMMANDS,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
        .use_clustering         = ENABLE_CLUSTERING,
This page took 0.054926 seconds and 4 git commands to generate.