linux/fs/ocfs2/dlm
Sunil Mushran 388c4bcb4e ocfs2/dlm: Migrate lockres with no locks if it has a reference
o2dlm was not migrating resources with zero locks because it assumed that that
resource would get purged by dlm_thread. However, some usage patterns involve
creating and dropping locks at a high rate leading to the migrate thread seeing
zero locks but the purge thread seeing an active reference. When this happens,
the dlm_thread cannot purge the resource and the migrate thread sees no reason
to migrate that resource. The spell is broken when the migrate thread catches
the resource with a lock.

The fix is to make the migrate thread also consider the reference map.

This usage pattern can be triggered by userspace on userdlm locks and flocks.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
2010-12-09 15:36:00 -08:00
..
dlmapi.h
dlmast.c
dlmcommon.h ocfs2/dlm: Add message DLM_QUERY_NODEINFO 2010-10-07 16:47:03 -07:00
dlmconvert.c
dlmconvert.h
dlmdebug.c Merge branch 'globalheartbeat-2' of git://oss.oracle.com/git/smushran/linux-2.6 into ocfs2-merge-window 2010-10-15 13:03:09 -07:00
dlmdebug.h
dlmdomain.c ocfs2/cluster: Bump up dlm protocol to version 1.1 2010-10-09 10:27:04 -07:00
dlmdomain.h
dlmlock.c
dlmmaster.c ocfs2/dlm: Migrate lockres with no locks if it has a reference 2010-12-09 15:36:00 -08:00
dlmrecovery.c
dlmthread.c
dlmunlock.c
dlmver.c
dlmver.h
Makefile