diff options
-rw-r--r-- | fs/ceph/mds_client.c | 3 |
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; |