ceph: use connection mutex to protect read and write stages
authorSage Weil <sage@newdream.net>
Tue, 22 Dec 2009 18:43:42 +0000 (10:43 -0800)
committerSage Weil <sage@newdream.net>
Wed, 23 Dec 2009 16:17:19 +0000 (08:17 -0800)
Use a single mutex (previously out_mutex) to protect both read and write
activity from concurrent ceph_con_* calls.  Drop the mutex when doing
callbacks to avoid nested locking (the callback may need to call something
like ceph_con_close).

Signed-off-by: Sage Weil <sage@newdream.net>

No differences found