All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] fix unnecessary activation of blk tag queue for qla2x00
@ 2005-10-07  8:18 Chen, Kenneth W
  2005-10-07 17:03 ` Andrew Vasquez
  0 siblings, 1 reply; 7+ messages in thread
From: Chen, Kenneth W @ 2005-10-07  8:18 UTC (permalink / raw)
  To: linux-scsi

Regarding to discussion on LKML:
http://marc.theaimsgroup.com/?t=112865351000001&r=1&w=2

It turns out that qla2x00 driver unnecessarily activated generic
blk tag queue without actually use any of the tag maintained by
the block layer.  I suggest we turn that off until there is a
real consumer of the tag queuing in the qla driver. Please apply.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>

--- ./drivers/scsi/qla2xxx/qla_os.c.orig	2005-10-06
23:24:32.547238409 -0700
+++ ./drivers/scsi/qla2xxx/qla_os.c	2005-10-06 23:30:44.004265109
-0700
@@ -1101,11 +1101,7 @@ qla2xxx_slave_configure(struct scsi_devi
 	scsi_qla_host_t *ha = to_qla_host(sdev->host);
 	struct fc_rport *rport = starget_to_rport(sdev->sdev_target);
 
-	if (sdev->tagged_supported)
-		scsi_activate_tcq(sdev, 32);
-	else
-		scsi_deactivate_tcq(sdev, 32);
-
+	scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), 32);
 	rport->dev_loss_tmo = ha->port_down_retry_count + 5;
 
 	return 0;
@@ -1127,13 +1123,9 @@ qla2x00_change_queue_depth(struct scsi_d
 static int
 qla2x00_change_queue_type(struct scsi_device *sdev, int tag_type)
 {
-	if (sdev->tagged_supported) {
+	if (sdev->tagged_supported)
 		scsi_set_tag_type(sdev, tag_type);
-		if (tag_type)
-			scsi_activate_tcq(sdev, sdev->queue_depth);
-		else
-			scsi_deactivate_tcq(sdev, sdev->queue_depth);
-	} else
+	else
 		tag_type = 0;
 
 	return tag_type;

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-12 21:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07  8:18 [patch] fix unnecessary activation of blk tag queue for qla2x00 Chen, Kenneth W
2005-10-07 17:03 ` Andrew Vasquez
2005-10-12 20:00   ` Patrick Mansfield
2005-10-12 20:55     ` Chen, Kenneth W
2005-10-12 21:09       ` Andrew Vasquez
2005-10-12 21:20         ` Chen, Kenneth W
2005-10-12 21:34           ` 'Andrew Vasquez'

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.