1
0
Fork 0

ceph: skip mds sync on forced unmount

Signed-off-by: Sage Weil <sage@newdream.net>
hifive-unleashed-5.1
Sage Weil 2010-05-03 15:22:00 -07:00
parent b736b3d9d0
commit 56b7cf9581
1 changed files with 3 additions and 0 deletions

View 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;