ceph: fix locking for waking session requests after reconnect
authorSage Weil <sage@newdream.net>
Tue, 11 May 2010 04:58:38 +0000 (21:58 -0700)
committerSage Weil <sage@newdream.net>
Tue, 11 May 2010 16:53:57 +0000 (09:53 -0700)
The session->s_waiting list is protected by mdsc->mutex, not s_mutex.  This
was causing (rare) s_waiting list corruption.

Fix errors paths too, while we're here.  A more thorough cleanup of this
function is coming soon.

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

No differences found