linux/fs/dlm
David Teigland 7d3c1feb80 [DLM] fix mode munging
There are flags to enable two specialized features in the dlm:
1. CONVDEADLK causes the dlm to resolve conversion deadlocks internally by
   changing the granted mode of locks to NL.
2. ALTPR/ALTCW cause the dlm to change the requested mode of locks to PR
   or CW to grant them if the normal requested mode can't be granted.

GFS direct i/o exercises both of these features, especially when mixed
with buffered i/o.  The dlm has problems with them.

The first problem is on the master node. If it demotes a lock as a part of
converting it, the actual step of converting the lock isn't being done
after the demotion, the lock is just left sitting on the granted queue
with a granted mode of NL.  I think the mistaken assumption was that the
call to grant_pending_locks() would grant it, but that function naturally
doesn't look at locks on the granted queue.

The second problem is on the process node.  If the master either demotes
or gives an altmode, the munging of the gr/rq modes is never done in the
process copy of the lock, leaving the master/process copies out of sync.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-05-01 09:11:36 +01:00
..
Kconfig [DLM] Consolidate transport protocols 2007-05-01 09:11:23 +01:00
Makefile [DLM] Consolidate transport protocols 2007-05-01 09:11:23 +01:00
ast.c [DLM] fs/dlm/ast.c should #include "ast.h" 2007-05-01 09:11:25 +01:00
ast.h
config.c [DLM] Consolidate transport protocols 2007-05-01 09:11:23 +01:00
config.h [DLM] Consolidate transport protocols 2007-05-01 09:11:23 +01:00
debug_fs.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
dir.c
dir.h
dlm_internal.h [DLM] add orphan purging code (1/2) 2007-05-01 09:11:10 +01:00
lock.c [DLM] fix mode munging 2007-05-01 09:11:36 +01:00
lock.h [DLM] interface for purge (2/2) 2007-05-01 09:11:12 +01:00
lockspace.c [DLM] overlapping cancel and unlock 2007-05-01 09:11:00 +01:00
lockspace.h
lowcomms.c [DLM] Consolidate transport protocols 2007-05-01 09:11:23 +01:00
lowcomms.h
lvb_table.h
main.c
member.c
member.h
memory.c [PATCH] Transform kmem_cache_alloc()+memset(0) -> kmem_cache_zalloc(). 2007-02-11 10:51:27 -08:00
memory.h
midcomms.c [DLM] rename dlm_config_info fields 2007-02-05 13:36:37 -05:00
midcomms.h
rcom.c [DLM] rename dlm_config_info fields 2007-02-05 13:36:37 -05:00
rcom.h
recover.c [DLM] fix master recovery 2007-02-05 13:36:58 -05:00
recover.h
recoverd.c [DLM] change some log_error to log_debug 2007-02-05 13:36:34 -05:00
recoverd.h
requestqueue.c
requestqueue.h
user.c [DLM] Remove redundant assignment 2007-05-01 09:11:20 +01:00
user.h
util.c [DLM] fix old rcom messages 2007-02-05 13:35:50 -05:00
util.h