linux/fs/gfs2
Steven Whitehouse 94a09a3999 GFS2: Fix race in glock lru glock disposal
We must not leave items on the LRU list with GLF_LOCK set, since
they can be removed if the glock is brought back into use, which
may then potentially result in a hang, waiting for GLF_LOCK to
clear.

It doesn't happen very often, since it requires a glock that has
not been used for a long time to be brought back into use at the
same moment that the shrinker is part way through disposing of
glocks.

The fix is to set GLF_LOCK at a later time, when we already know
that the other locks can be obtained. Also, we now only release
the lru_lock in case a resched is needed, rather than on every
iteration.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2014-07-18 11:12:51 +01:00
..
acl.c GFS2: inline function gfs2_set_mode 2014-03-19 15:53:52 +00:00
acl.h GFS2: Increase the max number of ACLs 2014-03-19 15:16:24 +00:00
aops.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
bmap.c GFS2: fs/gfs2/bmap.c: kernel-doc warning fixes 2014-05-16 09:34:21 +01:00
bmap.h
dentry.c
dir.c GFS2: Use pr_<level> more consistently 2014-03-07 09:30:51 +00:00
dir.h
export.c
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
gfs2.h
glock.c GFS2: Fix race in glock lru glock disposal 2014-07-18 11:12:51 +01:00
glock.h
glops.c This must be about the smallest merge window patch set ever for GFS2. 2014-06-04 08:30:10 -07:00
glops.h GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
incore.h GFS2: Prevent recovery before the local journal is set 2014-06-02 19:12:06 +01:00
inode.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
inode.h
Kconfig
lock_dlm.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
log.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
log.h GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
lops.c GFS2: lops.c: replace 0 by NULL for pointers 2014-04-28 09:41:55 +01:00
lops.h
main.c GFS2: Use pr_<level> more consistently 2014-03-07 09:30:51 +00:00
Makefile
meta_io.c mm: non-atomically mark page accessed during page cache allocation where possible 2014-06-04 16:54:10 -07:00
meta_io.h GFS2: Fix address space from page function 2014-03-31 17:48:27 +01:00
ops_fstype.c GFS2: Prevent recovery before the local journal is set 2014-06-02 19:12:06 +01:00
quota.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
quota.h
recovery.c This must be about the smallest merge window patch set ever for GFS2. 2014-06-04 08:30:10 -07:00
recovery.h GFS2: Move recovery variables to journal structure in memory 2014-03-07 09:14:48 +00:00
rgrp.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
rgrp.h
super.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
super.h
sys.c This must be about the smallest merge window patch set ever for GFS2. 2014-06-04 08:30:10 -07:00
sys.h
trace_gfs2.h
trans.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
trans.h
util.c GFS2: Convert gfs2_lm_withdraw to use fs_err 2014-03-07 09:39:18 +00:00
util.h GFS2: Convert gfs2_lm_withdraw to use fs_err 2014-03-07 09:39:18 +00:00
xattr.c
xattr.h