linux/fs/ocfs2/dlm
Wengang Wang 6d98c3ccb5 ocfs2/dlm: fix a dead lock
When we have to take both dlm->master_lock and lockres->spinlock,
take them in order

lockres->spinlock and then dlm->master_lock.

The patch fixes a violation of the rule.
We can simply move taking dlm->master_lock to where we have dropped res->spinlock
since when we access res->state and free mle memory we don't need master_lock's
protection.

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:44:20 -07:00
..
dlmapi.h
dlmast.c
dlmcommon.h
dlmconvert.c
dlmconvert.h
dlmdebug.c
dlmdebug.h
dlmdomain.c ocfs2: tighten up strlen() checking 2010-07-12 13:57:53 -07:00
dlmdomain.h
dlmlock.c
dlmmaster.c ocfs2/dlm: fix a dead lock 2010-08-07 10:44:20 -07:00
dlmrecovery.c
dlmthread.c
dlmunlock.c
dlmver.c
dlmver.h
Makefile