]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitf08736bd6c54c33b91d4324eee5713ca6f13319a
tree3bc3b44ce5e8a8d48af345ebb1748b4a598a212b
parentded00142740f54610b7e256201c45a3bfa5f14e5
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