Skip to content

Commit 5b9851b

Browse files
Mark HaverkampJames Bottomley
authored andcommitted
[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>
1 parent df3b766 commit 5b9851b

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

drivers/scsi/aacraid/aacraid.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ struct aac_queue {
563563
spinlock_t lockdata; /* Actual lock (used only on one side of the lock) */
564564
struct list_head cmdq; /* A queue of FIBs which need to be prcessed by the FS thread. This is */
565565
/* only valid for command queues which receive entries from the adapter. */
566-
struct list_head pendingq; /* A queue of outstanding fib's to the adapter. */
567566
u32 numpending; /* Number of entries on outstanding queue. */
568567
struct aac_dev * dev; /* Back pointer to adapter structure */
569568
};
@@ -826,7 +825,6 @@ struct fib {
826825
* The following is used to put this fib context onto the
827826
* Outstanding I/O queue.
828827
*/
829-
struct list_head queue;
830828
/*
831829
* And for the internal issue/reply queues (we may be able
832830
* to merge these two)

drivers/scsi/aacraid/comminit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ static void aac_queue_init(struct aac_dev * dev, struct aac_queue * q, u32 *mem,
159159
{
160160
q->numpending = 0;
161161
q->dev = dev;
162-
INIT_LIST_HEAD(&q->pendingq);
163162
init_waitqueue_head(&q->cmdready);
164163
INIT_LIST_HEAD(&q->cmdq);
165164
init_waitqueue_head(&q->qfull);

drivers/scsi/aacraid/commsup.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
472472
spin_lock_irqsave(q->lock, qflags);
473473
if (dev->new_comm_interface) {
474474
unsigned long count = 10000000L; /* 50 seconds */
475-
list_add_tail(&fibptr->queue, &q->pendingq);
476475
q->numpending++;
477476
spin_unlock_irqrestore(q->lock, qflags);
478477
while (aac_adapter_send(fibptr) != 0) {
@@ -481,7 +480,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
481480
spin_unlock_irqrestore(&fibptr->event_lock, flags);
482481
spin_lock_irqsave(q->lock, qflags);
483482
q->numpending--;
484-
list_del(&fibptr->queue);
485483
spin_unlock_irqrestore(q->lock, qflags);
486484
return -ETIMEDOUT;
487485
}
@@ -492,7 +490,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
492490
unsigned long nointr = 0;
493491
aac_queue_get( dev, &index, AdapNormCmdQueue, hw_fib, 1, fibptr, &nointr);
494492

495-
list_add_tail(&fibptr->queue, &q->pendingq);
496493
q->numpending++;
497494
*(q->headers.producer) = cpu_to_le32(index + 1);
498495
spin_unlock_irqrestore(q->lock, qflags);
@@ -520,7 +517,6 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
520517
if (--count == 0) {
521518
spin_lock_irqsave(q->lock, qflags);
522519
q->numpending--;
523-
list_del(&fibptr->queue);
524520
spin_unlock_irqrestore(q->lock, qflags);
525521
if (wait == -1) {
526522
printk(KERN_ERR "aacraid: aac_fib_send: first asynchronous command timed out.\n"

drivers/scsi/aacraid/dpcsup.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ unsigned int aac_response_normal(struct aac_queue * q)
8686
* the fib timed out.
8787
*/
8888
if (!(fib->flags & FIB_CONTEXT_FLAG_TIMED_OUT)) {
89-
list_del(&fib->queue);
9089
dev->queues->queue[AdapNormCmdQueue].numpending--;
9190
} else {
9291
printk(KERN_WARNING "aacraid: FIB timeout (%x).\n", fib->flags);
@@ -284,7 +283,6 @@ unsigned int aac_intr_normal(struct aac_dev * dev, u32 Index)
284283
return 0;
285284
}
286285

287-
list_del(&fib->queue);
288286
dev->queues->queue[AdapNormCmdQueue].numpending--;
289287

290288
if (fast) {

0 commit comments

Comments
 (0)