]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix Resetter locking
authorSage Weil <sage.weil@dreamhost.com>
Thu, 23 Feb 2012 05:15:19 +0000 (21:15 -0800)
committerSage Weil <sage@newdream.net>
Fri, 24 Feb 2012 00:35:41 +0000 (16:35 -0800)
commit159f2b864c2b9e63b61971548652e0619a510d1c
treed5ff37ca724dbbec1bfcc40318a056fbb812705a
parent26b5675301cceb34641e58c70cd5295c6e1f3854
mds: fix Resetter locking

We need to hold the lock for ms_dispatch, esp calls into objecter.  We
should only drop it when blocking; use distinct naming for the on-stack
mutex used for that.

Reported-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/Resetter.cc
src/mds/Resetter.h