]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
commit9abf82b8bc93dd904738a71ca69aa5df356d4d24
tree208c5112173832092f93b8d91b8e8ec6f36209aa
parentd85b705663905b3dae30007f824355bdcfcf3f00
ceph: fix locking for waking session requests after reconnect

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>
fs/ceph/mds_client.c