kernel_optimize_test/fs/ocfs2/dlm
Wengang Wang b11f1f1ab7 ocfs2/dlm: remove potential deadlock -V3
When we need to take both dlm_domain_lock and dlm->spinlock, we should take
them in order of: dlm_domain_lock then dlm->spinlock.

There is pathes disobey this order. That is calling dlm_lockres_put() with
dlm->spinlock held in dlm_run_purge_list. dlm_lockres_put() calls dlm_put() at
the ref and dlm_put() locks on dlm_domain_lock.

Fix:
Don't grab/put the dlm when the initialising/releasing lockres.
That grab is not required because we don't call dlm_unregister_domain()
based on refcount.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Joel Becker <joel.becker@oracle.com>
2010-08-07 10:50:30 -07:00
..
dlmapi.h
dlmast.c
dlmcommon.h
dlmconvert.c
dlmconvert.h
dlmdebug.c
dlmdebug.h
dlmdomain.c
dlmdomain.h
dlmlock.c
dlmmaster.c ocfs2/dlm: remove potential deadlock -V3 2010-08-07 10:50:30 -07:00
dlmrecovery.c ocfs2/dlm: avoid incorrect bit set in refmap on recovery master 2010-08-07 10:49:41 -07:00
dlmthread.c ocfs2/dlm: avoid incorrect bit set in refmap on recovery master 2010-08-07 10:49:41 -07:00
dlmunlock.c
dlmver.c
dlmver.h
Makefile