mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
Merge pull request #9713 from xiexingguo/xxg-wip-server_droppin
server: drop locks and auth pins before waiting for trunc Reviewed-by: Yan, Zheng <zyan@redhat.com> Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
commit
b56d1f48e7
@ -3751,6 +3751,8 @@ void Server::handle_client_setattr(MDRequestRef& mdr)
|
||||
if (truncating_smaller && pi->is_truncating()) {
|
||||
dout(10) << " waiting for pending truncate from " << pi->truncate_from
|
||||
<< " to " << pi->truncate_size << " to complete on " << *cur << dendl;
|
||||
mds->locker->drop_locks(mdr.get());
|
||||
mdr->drop_local_auth_pins();
|
||||
cur->add_waiter(CInode::WAIT_TRUNC, new C_MDS_RetryRequest(mdcache, mdr));
|
||||
mds->mdlog->flush();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user