]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: refine shutdown, add ::stopping
authorJohn Spray <john.spray@redhat.com>
Thu, 18 Jun 2015 10:07:52 +0000 (11:07 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 25 Jun 2015 15:19:24 +0000 (16:19 +0100)
commitae387b65779afb6407c949ff00554835c7033ac0
tree6cda6c59e68d11056a43e0465efa6157dbd813ea
parent8072b19d37959d5457ee56a295e725b55af51f9c
mds: refine shutdown, add ::stopping

Add a ::stopping flag, set at start of suicide(),
that other contexts must inspect after taking
mds_lock.

This guards against the possibility of multiple
threads entering suicide, and more generally
against the possibility of other procedures
starting while we're in the middle of shutting down.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDS.cc
src/mds/MDS.h