]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: don't test ring_empty or ring_low without locks held
authorChris Mason <chris.mason@oracle.com>
Fri, 3 Feb 2012 16:09:36 +0000 (11:09 -0500)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 23:41:33 +0000 (16:41 -0700)
commit00956afeff06fe8961d7359774cda006ca54ad94
treedd67869ce06c76facb7dd01329a430da6443c420
parenta398103c605f69164d3df78a7b35b974cae4d6b7
RDS: don't test ring_empty or ring_low without locks held

The math in the ring functions can't be trusted unless you're either the only
person adding to the ring or the only person freeing from it.  If there are no
locks held at all you can end up hitting bogus assertions around the ring counters.

This chnages the rds_ib_recv_refill code and the recv tasklet code to make sure
proper locks are held before we use rds_ib_ring_empty or rds_ib_ring_low

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Bang Nguyen <bang.nguyen@oracle.com>
net/rds/ib_recv.c