Skip to content

Commit

Permalink
Merge PR #53238 into main
Browse files Browse the repository at this point in the history
* refs/pull/53238/head:
	mds: just wait the client flushes the snap and dirty buffer

Reviewed-by: Venky Shankar <vshankar@redhat.com>
  • Loading branch information
vshankar committed Jan 18, 2024
2 parents aeb75b5 + 68179ae commit 2c51672
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/mds/Locker.cc
Expand Up @@ -1237,6 +1237,19 @@ void Locker::eval_gather(SimpleLock *lock, bool first, bool *pneed_issue, MDSCon
send_lock_message(lock, LOCK_AC_SYNC, softdata);
}
break;
case LOCK_XLOCKSNAP:
if (lock->get_sm() == &sm_filelock) {
int pending = lock->gcaps_allowed(CAP_ANY) ||
lock->gcaps_allowed(CAP_LONER) ||
lock->gcaps_allowed(CAP_XLOCKER);
int revoke = ~pending & (loner_issued | other_issued | xlocker_issued);

// wait for 'Fb' to be revoked
if (revoke & CEPH_CAP_GBUFFER) {
return;
}
}
break;
}

}
Expand Down

0 comments on commit 2c51672

Please sign in to comment.