Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208316
b: refs/heads/master
c: 8112586
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Aug 7, 2010
1 parent 2da3e33 commit 632d94b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2a4a43dbaf10383703d512bbe560d5a24da0bf2
refs/heads/master: 8112586063fe53958d60218631d661533f304504
15 changes: 1 addition & 14 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3376,8 +3376,7 @@ static inline int interrupt_pending(ctlr_info_t *h)

static inline long interrupt_not_for_us(ctlr_info_t *h)
{
return !(h->msi_vector || h->msix_vector) &&
((h->access.intr_pending(h) == 0) ||
return ((h->access.intr_pending(h) == 0) ||
(h->interrupts_enabled == 0));
}

Expand Down Expand Up @@ -3470,10 +3469,6 @@ static irqreturn_t do_cciss_intx(int irq, void *dev_id)

if (interrupt_not_for_us(h))
return IRQ_NONE;
/*
* If there are completed commands in the completion queue,
* we had better do something about it.
*/
spin_lock_irqsave(&h->lock, flags);
while (interrupt_pending(h)) {
raw_tag = get_next_completion(h);
Expand All @@ -3484,7 +3479,6 @@ static irqreturn_t do_cciss_intx(int irq, void *dev_id)
raw_tag = process_nonindexed_cmd(h, raw_tag);
}
}

spin_unlock_irqrestore(&h->lock, flags);
return IRQ_HANDLED;
}
Expand All @@ -3498,12 +3492,6 @@ static irqreturn_t do_cciss_msix_intr(int irq, void *dev_id)
unsigned long flags;
u32 raw_tag;

if (interrupt_not_for_us(h))
return IRQ_NONE;
/*
* If there are completed commands in the completion queue,
* we had better do something about it.
*/
spin_lock_irqsave(&h->lock, flags);
raw_tag = get_next_completion(h);
while (raw_tag != FIFO_EMPTY) {
Expand All @@ -3512,7 +3500,6 @@ static irqreturn_t do_cciss_msix_intr(int irq, void *dev_id)
else
raw_tag = process_nonindexed_cmd(h, raw_tag);
}

spin_unlock_irqrestore(&h->lock, flags);
return IRQ_HANDLED;
}
Expand Down

0 comments on commit 632d94b

Please sign in to comment.