Problem: fix dead lock in _gf_free. Currently GF_ASSERT is done under mem_accounting lock at some places. On a GF_ASSERT failure, gf_msg_callingfn is called which calls gf_malloc internally and it takes the same mem_accounting lock leading to deadlock.
REVIEW: https://review.gluster.org/22600 (core: fix hang issue in __gf_free) posted (#1) for review on master by Susant Palai
REVIEW: https://review.gluster.org/22600 (core: fix hang issue in __gf_free) merged (#2) on master by Susant Palai
*** Bug 1679892 has been marked as a duplicate of this bug. ***