Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d510d965 authored by Mike Christie's avatar Mike Christie Committed by James Bottomley
Browse files

[SCSI] qla4xxx: fix queue depth setting



We want to set the queue depth to something reasonable - not
the can_queue.

Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Cc: David Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 885ace9e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
 */
@@ -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;
}