]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: Fix race in posting rx buffers.
authorSathya Perla <sathya.perla@emulex.com>
Mon, 22 Aug 2011 19:41:51 +0000 (19:41 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 23:36:08 +0000 (15:36 -0800)
commit98d5f2a921332e5f52808007f5e29c02424c91a8
tree32cd94939e7036f6cbcb19d5d9ad3f2c1592f0e7
parent0f7e392ae7325e108878e0781deeb059f223ba2d
be2net: Fix race in posting rx buffers.

There is a possibility of be_post_rx_frags() being called simultaneously from
both be_worker() (when rx_post_starved) and be_poll_rx() (when rxq->used is 0).
This can be avoided by posting rx buffers only when some completions have been
reaped.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c