libceph: lock outside send_queued()
authorAlex Elder <elder@inktank.com>
Fri, 15 Feb 2013 17:42:29 +0000 (11:42 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 18 Feb 2013 18:19:44 +0000 (12:19 -0600)
commitf9d251994522fed06f47855b534f21c07ecf7181
tree23ecc17b43486c5889306d46adc2718d82754a5a
parenta3bea47e8bdd51d921e5b2045720d60140612c7c
libceph: lock outside send_queued()

Two of the three callers of the osd client's send_queued() function
already hold the osd client mutex and drop it before the call.

Change send_queued() so it assumes the caller holds the mutex, and
update all callers accordingly.  Rename it __send_queued() to match
the convention used elsewhere in the file with respect to the lock.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/osd_client.c