diff options
| author | 2011-03-09 10:58:04 +0000 | |
|---|---|---|
| committer | 2011-03-09 10:58:04 +0000 | |
| commit | fc0e38dae645f65424d1fb5d2a938aab8ce48a58 (patch) | |
| tree | 8b0a89a0de01a0504a002a184a290a53545fce82 /scripts/selinux/genheaders/genheaders.c | |
| parent | GFS2: quota allows exceeding hard limit (diff) | |
| download | wireguard-linux-fc0e38dae645f65424d1fb5d2a938aab8ce48a58.tar.xz wireguard-linux-fc0e38dae645f65424d1fb5d2a938aab8ce48a58.zip | |
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: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'scripts/selinux/genheaders/genheaders.c')
0 files changed, 0 insertions, 0 deletions
