aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/commsup.c
diff options
context:
space:
mode:
authorMark Haverkamp <markh@osdl.org>2006-05-10 12:13:37 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-20 10:23:02 -0400
commit5b9851b5511833a96fea2196971b5709ef019136 (patch)
treefd87212b1f9efb9db1f8bea67e6b3c204e1ac955 /drivers/scsi/aacraid/commsup.c
parentdf3b7668715f9acfe6ff37dd886f68e46ccd677e (diff)
[SCSI] aacraid: remove unneeded list
Received From Mark Salyzyn The queue tracking is just not being used, not even for debugging. Information about outstanding commands can be acquired from the scsi structures. Signed-off-by: Mark Haverkamp <markh@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r--drivers/scsi/aacraid/commsup.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index 1c83af3d0f3d..d2ef17ea44fa 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -472,7 +472,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
472 spin_lock_irqsave(q->lock, qflags); 472 spin_lock_irqsave(q->lock, qflags);
473 if (dev->new_comm_interface) { 473 if (dev->new_comm_interface) {
474 unsigned long count = 10000000L; /* 50 seconds */ 474 unsigned long count = 10000000L; /* 50 seconds */
475 list_add_tail(&fibptr->queue, &q->pendingq);
476 q->numpending++; 475 q->numpending++;
477 spin_unlock_irqrestore(q->lock, qflags); 476 spin_unlock_irqrestore(q->lock, qflags);
478 while (aac_adapter_send(fibptr) != 0) { 477 while (aac_adapter_send(fibptr) != 0) {
@@ -481,7 +480,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
481 spin_unlock_irqrestore(&fibptr->event_lock, flags); 480 spin_unlock_irqrestore(&fibptr->event_lock, flags);
482 spin_lock_irqsave(q->lock, qflags); 481 spin_lock_irqsave(q->lock, qflags);
483 q->numpending--; 482 q->numpending--;
484 list_del(&fibptr->queue);
485 spin_unlock_irqrestore(q->lock, qflags); 483 spin_unlock_irqrestore(q->lock, qflags);
486 return -ETIMEDOUT; 484 return -ETIMEDOUT;
487 } 485 }
@@ -492,7 +490,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
492 unsigned long nointr = 0; 490 unsigned long nointr = 0;
493 aac_queue_get( dev, &index, AdapNormCmdQueue, hw_fib, 1, fibptr, &nointr); 491 aac_queue_get( dev, &index, AdapNormCmdQueue, hw_fib, 1, fibptr, &nointr);
494 492
495 list_add_tail(&fibptr->queue, &q->pendingq);
496 q->numpending++; 493 q->numpending++;
497 *(q->headers.producer) = cpu_to_le32(index + 1); 494 *(q->headers.producer) = cpu_to_le32(index + 1);
498 spin_unlock_irqrestore(q->lock, qflags); 495 spin_unlock_irqrestore(q->lock, qflags);
@@ -520,7 +517,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
520 if (--count == 0) { 517 if (--count == 0) {
521 spin_lock_irqsave(q->lock, qflags); 518 spin_lock_irqsave(q->lock, qflags);
522 q->numpending--; 519 q->numpending--;
523 list_del(&fibptr->queue);
524 spin_unlock_irqrestore(q->lock, qflags); 520 spin_unlock_irqrestore(q->lock, qflags);
525 if (wait == -1) { 521 if (wait == -1) {
526 printk(KERN_ERR "aacraid: aac_fib_send: first asynchronous command timed out.\n" 522 printk(KERN_ERR "aacraid: aac_fib_send: first asynchronous command timed out.\n"