mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
* fix bug with lost waiters on null dentries (e.g. mknod race)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1241 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
db4e931284
commit
88b0b7d836
@ -1859,6 +1859,11 @@ void Locker::dentry_xlock_finish(CDentry *dn, bool quiet)
|
||||
|
||||
// unpin dir
|
||||
dn->dir->auth_unpin();
|
||||
|
||||
// kick waiters
|
||||
list<Context*> finished;
|
||||
dn->dir->take_waiting(CDir::WAIT_DNREAD, finished);
|
||||
mds->queue_finished(finished);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user