android_kernel_samsung_msm8976/fs/ocfs2/dlm
Joseph Qi 898eeac163 ocfs2/dlm: fix BUG in dlm_move_lockres_to_recovery_list
commit be12b299a83fc807bbaccd2bcb8ec50cbb0cb55c upstream.

When master handles convert request, it queues ast first and then
returns status.  This may happen that the ast is sent before the request
status because the above two messages are sent by two threads.  And
right after the ast is sent, if master down, it may trigger BUG in
dlm_move_lockres_to_recovery_list in the requested node because ast
handler moves it to grant list without clear lock->convert_pending.  So
remove BUG_ON statement and check if the ast is processed in
dlmconvert_remote.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reported-by: Yiwen Jiang <jiangyiwen@huawei.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Tariq Saeed <tariq.x.saeed@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:48 +02:00
..
Makefile
dlmapi.h
dlmast.c
dlmcommon.h
dlmconvert.c ocfs2/dlm: fix BUG in dlm_move_lockres_to_recovery_list 2016-06-07 10:42:48 +02:00
dlmconvert.h
dlmdebug.c
dlmdebug.h
dlmdomain.c
dlmdomain.h
dlmlock.c
dlmmaster.c ocfs2/dlm: ignore cleaning the migration mle that is inuse 2016-02-19 14:22:38 -08:00
dlmrecovery.c ocfs2/dlm: fix BUG in dlm_move_lockres_to_recovery_list 2016-06-07 10:42:48 +02:00
dlmthread.c
dlmunlock.c
dlmver.c
dlmver.h