libceph: drop mutex on error in handle_reply()
authorAlex Elder <elder@inktank.com>
Mon, 1 Apr 2013 23:58:26 +0000 (18:58 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:51 +0000 (21:17 -0700)
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>

No differences found