From: Sage Weil Date: Mon, 3 May 2010 22:22:00 +0000 (-0700) Subject: ceph: skip mds sync on forced unmount X-Git-Tag: v2.6.35-rc1~16^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56b7cf9581fa0486657102a6fb8efabc3eadeba1;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ceph: skip mds sync on forced unmount Signed-off-by: Sage Weil --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 35dbdad..0d451a8 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) { 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;