diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2008-12-17 00:49:22 +0100 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 17:40:35 +0100 |
commit | b0d4f817ba5de8adb875ace594554a96d7737710 (patch) | |
tree | 2e64d3240d6ad879c4ffa1c01ca1696abf3bb2fb /mm | |
parent | ocfs2/dlm: Hold off sending lockres drop ref message while lockres is migrating (diff) | |
download | linux-b0d4f817ba5de8adb875ace594554a96d7737710.tar.xz linux-b0d4f817ba5de8adb875ace594554a96d7737710.zip |
ocfs2/dlm: Fix race in adding/removing lockres' to/from the tracking list
This patch adds a new lock, dlm->tracking_lock, to protect adding/removing
lockres' to/from the dlm->tracking_list. We were previously using dlm->spinlock
for the same, but that proved inadequate as we could be freeing a lockres from
a context that did not hold that lock. As the new lock only protects this list,
we can explicitly take it when removing the lockres from the tracking list.
This bug was exposed when testing multiple processes concurrently flock() the
same file.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions