Skip to content

Commit

Permalink
[SCSI] qla4xxx: fix queue depth setting
Browse files Browse the repository at this point in the history
We want to set the queue depth to something reasonable - not
the can_queue.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: David Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Mike Christie authored and James Bottomley committed Jul 26, 2008
1 parent 885ace9 commit d510d96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ MODULE_PARM_DESC(ql4xextended_error_logging,

int ql4_mod_unload = 0;

#define QL4_DEF_QDEPTH 32

/*
* SCSI host template entry points
*/
Expand Down Expand Up @@ -1387,7 +1389,7 @@ static int qla4xxx_slave_alloc(struct scsi_device *sdev)

sdev->hostdata = ddb;
sdev->tagged_supported = 1;
scsi_activate_tcq(sdev, sdev->host->can_queue);
scsi_activate_tcq(sdev, QL4_DEF_QDEPTH);
return 0;
}

Expand Down

0 comments on commit d510d96

Please sign in to comment.