summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand/onenand_base.c
diff options
context:
space:
mode:
authorJoseph Qi <joseph.qi@huawei.com>2016-03-25 14:21:29 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-12 09:12:48 -0700
commitbabcedfc01491e2cfaf7124910cf0ceaca9beb98 (patch)
treed90ca3506e088ba798aa6e633e6d513018d93897 /drivers/mtd/onenand/onenand_base.c
parent0eef85dd8b83865be7e5a333ad70db5c4bdfa9b0 (diff)
downloadlwn-babcedfc01491e2cfaf7124910cf0ceaca9beb98.tar.gz
lwn-babcedfc01491e2cfaf7124910cf0ceaca9beb98.zip
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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/onenand/onenand_base.c')
0 files changed, 0 insertions, 0 deletions