ceph: skip mds sync on forced unmount
Sage Weil [Mon, 3 May 2010 22:22:00 +0000 (15:22 -0700)]
Signed-off-by: Sage Weil <sage@newdream.net>

fs/ceph/mds_client.c

index 35dbdad..0d451a8 100644 (file)
@@ -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;