]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: drop mutex on error in handle_reply()
authorAlex Elder <elder@inktank.com>
Mon, 1 Apr 2013 23:58:26 +0000 (18:58 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 4 Apr 2013 14:26:04 +0000 (09:26 -0500)
commit1fa41942d979d405fbdce3b56518c32ea551ddbd
treea75dd69b7072d5b65b23f3c8d94198e3f5f33823
parentdf39ef23fcdb08405dce72f2362a70ef308af1d2
libceph: drop mutex on error in handle_reply()

The osd client mutex is acquired just before getting a reference to
a request in handle_reply().  However the error paths after that
don't drop the mutex before returning as they should.

Drop the mutex after dropping the request reference.  Also add a
bad_mutex label at that point and use it so the failed request
lookup case can be handled with the rest.

This resolves:
    http://tracker.ceph.com/issues/4615

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/osd_client.c