cnic: Prevent status block race conditions with hardware
authorMichael Chan <mchan@broadcom.com>
Wed, 2 Mar 2011 13:00:49 +0000 (13:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2011 23:57:51 +0000 (15:57 -0800)
commit107c3f4d42adc9af393019b795dd2177fbe9e465
tree547c9130536f19568e1b903e1bd2942933355179
parent1707be1be18deb1deaecd768135290cffdeb0e8e
cnic: Prevent status block race conditions with hardware

The status block index is used to acknowledge interrupt events and must
be read before checking for the interrupt events, so we need to add rmb()
to guarantee that.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c