cache_lookup() work this week.
Matthew Dillon
dillon at apollo.backplane.com
Wed Sep 3 09:19:24 PDT 2003
:
:You've wrote that "The one representing "d" will be a negative cache entry,
:placemarking the operation.".
:So maybe this negative entry could be treated as file in directory.
:In other words 'lock d' will create some shade object in 'c' directory
:(in namecache) and this will prevent removing 'c'. Or whatever...
:
:--=20
:Pawel Jakub Dawidek pawel at xxxxxxxxxxx
D would prevent C from being rmdir'd simply by being locked in the
namecache and preventing C from being able to flush its children in the
cache. This will have the effect delaying the rmdir until after the
rename has completed, after which the rmdir will fail due to the directory
not being empty.
We can't actually create D prior to the operation because it might
block and break the atomicy of the operation. The big advantage of
using the namecache to lock the namespace is that atomicy can be
maintained.
-Matt
More information about the Kernel
mailing list