]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sym53c8xx: use a queue depth of 1 for untagged devices
authorTony Battersby <tonyb@cybernetics.com>
Thu, 8 Jan 2009 17:58:04 +0000 (12:58 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:17 +0000 (12:58 -0500)
commit26fe01490503a6f328a92864c493ff40058ed767
treec74efdea9b4015b9fcba7a90d229c341ee480237
parent22d6e1441d254123b62e0354de87a9f89eaac5e0
[SCSI] sym53c8xx: use a queue depth of 1 for untagged devices

sym53c8xx uses a command queue depth of 2 for untagged devices,
without good reason.  This _mostly_ seems to work ok, but it has
caused me some subtle problems.  For example, I have an application
where one thread sends write commands to a tape drive, and another
thread sends log sense polling commands.  With a queue depth of
2, the polling commands end up being starved for long periods of
time while multiple write commands are serviced (this may also be
related to the fact the the sg driver queues commands in LIFO order).
This problem is fixed by changing the queue depth to 1 for untagged
devices.  I have tested this change extensively with many different
tape drives, medium changers, and disk drives (disk drives of course
use tagged commands and are therefore unaffected by this patch).

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sym53c8xx_2/sym_glue.c