Skip to content

Commit

Permalink
ceph: skip mds sync on forced unmount
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed May 17, 2010
1 parent b736b3d commit 56b7cf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 56b7cf9

Please sign in to comment.