projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4d5de
)
[SCSI] bnx2fc: Do not arm CQ when there are no CQEs
author
Bhanu Prakash Gollapudi
<
[email protected]
>
Wed, 27 Jul 2011 18:32:11 +0000
(11:32 -0700)
committer
James Bottomley
<
[email protected]
>
Thu, 28 Jul 2011 08:00:33 +0000
(12:00 +0400)
Signed-off-by: Bhanu Prakash Gollapudi <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/bnx2fc/bnx2fc_hwi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/bnx2fc/bnx2fc_hwi.c
b/drivers/scsi/bnx2fc/bnx2fc_hwi.c
index 9f38c5725b86fa2e9de98a770ffb060741e7eb24..357a63d192e224b71817c9cd69eecf13b3e160ae 100644
(file)
--- a/
drivers/scsi/bnx2fc/bnx2fc_hwi.c
+++ b/
drivers/scsi/bnx2fc/bnx2fc_hwi.c
@@
-1070,8
+1070,10
@@
unlock:
1 - tgt->cq_curr_toggle_bit;
}
}
- bnx2fc_arm_cq(tgt);
- atomic_add(num_free_sqes, &tgt->free_sqes);
+ if (num_free_sqes) {
+ bnx2fc_arm_cq(tgt);
+ atomic_add(num_free_sqes, &tgt->free_sqes);
+ }
spin_unlock_bh(&tgt->cq_lock);
return 0;
}