Skip to content
Snippets Groups Projects
Commit fc0e38da authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Fix glock deallocation race


This patch fixes a race in deallocating glocks which was introduced
in the RCU glock patch. We need to ensure that the glock count is
kept correct even in the case that there is a race to add a new
glock into the hash table. Also, to avoid having to wait for an
RCU grace period, the glock counter can be decremented before
call_rcu() is called.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 662e3a55
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment