Steven Whitehouse 26bb7505cf 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>
2009-12-03 12:00:12 +00:00
..
2009-12-03 11:47:51 +00:00
2009-12-03 11:47:35 +00:00
2009-06-12 08:49:20 +01:00
2009-12-03 11:57:23 +00:00
2009-09-27 11:39:25 -07:00
2008-06-27 09:39:44 +01:00
2009-12-03 12:00:12 +00:00
2009-12-03 11:49:30 +00:00
2009-12-03 11:45:37 +00:00
2009-12-03 11:58:47 +00:00
2009-12-03 11:58:47 +00:00
2008-06-27 09:39:31 +01:00
2009-12-03 11:58:47 +00:00
2008-03-31 10:39:54 +01:00
2009-08-26 18:51:04 +01:00
2009-05-22 10:01:55 +01:00
2009-03-24 11:21:27 +00:00
2009-09-23 18:13:10 -07:00
2009-12-03 11:58:47 +00:00
2009-05-19 10:01:18 +01:00
2009-01-05 07:39:13 +00:00
2009-01-05 07:39:05 +00:00
2009-12-03 11:47:35 +00:00
2009-12-03 11:47:35 +00:00