kernel-ark/fs/gfs2
Benjamin Marzinski 02ffad08e8 GFS2: Fix locking bug in failed shared to exclusive conversion
After calling out to the dlm, GFS2 sets the new state of a glock to
gl_target in gdlm_ast().  However, gl_target is not always the lock
state that was requested. If a conversion from shared to exclusive
fails, finish_xmote() will call do_xmote() with LM_ST_UNLOCKED, instead
of gl->gl_target, so that it can reacquire the lock in exlusive the next
time around.  In this case, setting the lock to gl_target in gdlm_ast()
will make GFS2 think that it has the glock in exclusive mode, when
really, it doesn't have the glock locked at all.  This patch adds a new
field to the gfs2_glock structure, gl_req, to track the mode that was
requested.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2009-03-24 11:21:26 +00:00
..
acl.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
acl.h
bmap.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
bmap.h GFS2: Streamline alloc calculations for writes 2009-01-05 07:39:17 +00:00
dir.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
dir.h GFS2: Fix bug in gfs2_lock_fs_check_clean() 2009-01-05 07:39:11 +00:00
eaops.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
eaops.h
eattr.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
eattr.h
gfs2.h [GFS2] Remove remote lock dropping code 2008-06-27 09:39:44 +01:00
glock.c GFS2: Add a "demote a glock" interface to sysfs 2009-03-24 11:21:22 +00:00
glock.h GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
glops.c GFS2: Add a "demote a glock" interface to sysfs 2009-03-24 11:21:22 +00:00
glops.h GFS2: Add a "demote a glock" interface to sysfs 2009-03-24 11:21:22 +00:00
incore.h GFS2: Fix locking bug in failed shared to exclusive conversion 2009-03-24 11:21:26 +00:00
inode.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
inode.h GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
Kconfig GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
lock_dlm.c GFS2: Fix locking bug in failed shared to exclusive conversion 2009-03-24 11:21:26 +00:00
log.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
log.h [GFS2] trivial sparse lock annotations 2008-06-27 09:39:31 +01:00
lops.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
lops.h [GFS2] Only do lo_incore_commit once 2008-03-31 10:39:54 +01:00
main.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
Makefile GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
meta_io.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
meta_io.h [GFS2] Clean up the glock core 2008-06-27 09:39:22 +01:00
mount.c GFS2: Support quota/noquota mount arguments 2009-03-24 11:21:23 +00:00
ops_address.c GFS2: Pagecache usage optimization on GFS2 2009-03-24 11:21:25 +00:00
ops_address.h [GFS2] Remove function gfs2_get_block 2008-01-25 08:08:25 +00:00
ops_dentry.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
ops_export.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
ops_file.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
ops_fstype.c GFS2: Expose UUID via sysfs/uevent 2009-03-24 11:21:21 +00:00
ops_inode.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
ops_super.c GFS2: Support generation of discard requests 2009-03-24 11:21:20 +00:00
quota.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
quota.h GFS2: change gfs2_quota_scan into a shrinker 2009-03-24 11:21:12 +00:00
recovery.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
recovery.h GFS2: Move gfs2_recoverd into recovery.c 2009-01-05 07:39:07 +00:00
rgrp.c GFS2: fix sparse warning: Should it be static? 2009-03-24 11:21:25 +00:00
rgrp.h [GFS2] Add extent allocation to block allocator 2008-03-31 10:40:47 +01:00
super.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
super.h GFS2: Fix remount argument parsing 2009-03-24 11:21:10 +00:00
sys.c GFS2: Add a "demote a glock" interface to sysfs 2009-03-24 11:21:22 +00:00
sys.h GFS2: Remove ancient, unused code 2009-01-05 07:39:13 +00:00
trans.c GFS2: Fix deadlock on journal flush 2009-03-24 11:21:18 +00:00
trans.h [GFS2] Update gfs2_trans_add_unrevoke to accept extents 2008-03-31 10:40:42 +01:00
util.c GFS2: Merge lock_dlm module into GFS2 2009-03-24 11:21:14 +00:00
util.h GFS2: Clean up & move gfs2_quotad 2009-01-05 07:39:05 +00:00