]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: let sender retry if dlm_dispatch_assert_master failed with -ENOMEM
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 10 Dec 2014 23:41:34 +0000 (15:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:03 +0000 (17:41 -0800)
commitfc6ba7aed02b64a786422bcea2b3ec227fc012ea
tree3bc3b44ce5e8a8d48af345ebb1748b4a598a212b
parentf5d0ddd67b9e5d7565972f7b3e2885a98384b615
ocfs2/dlm: let sender retry if dlm_dispatch_assert_master failed with -ENOMEM

Do not BUG() if GFP_ATOMIC allocation fails in dlm_dispatch_assert_master.
Instead, return -ENOMEM to the sender and then retry.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Alex Chen <alex.chen@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c