diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-11-27 10:31:11 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-12-03 12:00:12 +0000 |
commit | 26bb7505cf7db3560286be9f6384b6d3911f78b5 (patch) | |
tree | 0fcdf84b70a9effe7ab9c661dca74b6a4b4afb31 /scripts/namespace.pl | |
parent | c29cd9004e72acb5a6cb8caf08508f1c5edee686 (diff) |
GFS2: Fix glock refcount issues
This patch fixes some ref counting issues. Firstly by moving
the point at which we drop the ref count after a dlm lock
operation has completed we ensure that we never call
gfs2_glock_hold() on a lock with a zero ref count.
Secondly, by using atomic_dec_and_lock() in gfs2_glock_put()
we ensure that at no time will a glock with zero ref count
appear on the lru_list. That means that we can remove the
check for this in our shrinker (which was racy).
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'scripts/namespace.pl')
0 files changed, 0 insertions, 0 deletions