summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-03 15:22:00 -0700
committerSage Weil <sage@newdream.net>2010-05-04 11:26:53 -0700
commitb7a21294008b10e127936cb9694cc68043b5867a (patch)
treec9af1545c9957100f219902a891984ce7933fb37 /fs
parent8b8ccd0e3891399acf6366a6081ffad76d6b02e8 (diff)
ceph: skip mds sync on forced unmount
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/mds_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 5de7c834796c..1dae7791b8bf 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2730,6 +2730,9 @@ void ceph_mdsc_sync(struct ceph_mds_client *mdsc)
{
u64 want_tid, want_flush;
+ if (mdsc->client->mount_state == CEPH_MOUNT_SHUTDOWN)
+ return;
+
dout("sync\n");
mutex_lock(&mdsc->mutex);
want_tid = mdsc->last_tid;