diff options
author | Sage Weil <sage@newdream.net> | 2010-05-04 00:22:00 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-18 00:25:30 +0200 |
commit | 56b7cf9581fa0486657102a6fb8efabc3eadeba1 (patch) | |
tree | 3ad9967f1198e2848f51c0ac0077a6340ed48bcb /fs/ceph | |
parent | ceph: adjust masked struct_v variable names (diff) | |
download | linux-56b7cf9581fa0486657102a6fb8efabc3eadeba1.tar.xz linux-56b7cf9581fa0486657102a6fb8efabc3eadeba1.zip |
ceph: skip mds sync on forced unmount
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-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) { 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; |