aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-03 18:22:00 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:30 -0400
commit56b7cf9581fa0486657102a6fb8efabc3eadeba1 (patch)
tree3ad9967f1198e2848f51c0ac0077a6340ed48bcb /fs/ceph/mds_client.c
parentb736b3d9d0ba52693701373d7cd88aaad8e5bed3 (diff)
ceph: skip mds sync on forced unmount
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
-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 35dbdad07b1c..0d451a83bc83 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2748,6 +2748,9 @@ void ceph_mdsc_sync(struct ceph_mds_client *mdsc)
2748{ 2748{
2749 u64 want_tid, want_flush; 2749 u64 want_tid, want_flush;
2750 2750
2751 if (mdsc->client->mount_state == CEPH_MOUNT_SHUTDOWN)
2752 return;
2753
2751 dout("sync\n"); 2754 dout("sync\n");
2752 mutex_lock(&mdsc->mutex); 2755 mutex_lock(&mdsc->mutex);
2753 want_tid = mdsc->last_tid; 2756 want_tid = mdsc->last_tid;