diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2015-02-09 17:10:49 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-04-10 03:03:48 +0000 |
commit | d448fd187dde46bfb0d20354613912f6aa477904 (patch) | |
tree | dc67c340d5c26cc3d627d5e5b5614ad186fb3a4b /api/Makefile.am | |
parent | 2788ddd3a0afa98f78128247cca89427a323b090 (diff) |
rpc: fix deadlock when unref is inside conn->lock
In ping-timer implementation, the timer event takes a ref on the rpc
object. This ref needs to be removed after every timeout event.
ping-timer mechanism could be holding the last ref. For e.g, when a peer
is detached and its rpc object was unref'd. In this case, ping-timer
mechanism would try to acquire conn->mutex to perform the 'last' unref
while being inside the critical section already. This will result in a
deadlock.
Change-Id: I74f80dd08c9348bd320a1c6d12fc8cd544fa4aea
BUG: 1206134
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/9613
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/Makefile.am')
0 files changed, 0 insertions, 0 deletions