ceph: skip mds sync on forced unmount
authorSage Weil <sage@newdream.net>
Mon, 3 May 2010 22:22:00 +0000 (15:22 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:30 +0000 (15:25 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c

index 35dbdad07b1c0a66e56ac5e4492ec8a1e9bc0d96..0d451a83bc83202000d823deb931052dfa7d6c51 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;