|author||NeilBrown <email@example.com>||2014-10-13 15:52:22 -0700|
|committer||Linus Torvalds <firstname.lastname@example.org>||2014-10-14 02:18:16 +0200|
|parent||autofs4: avoid taking fs_lock during rcu-walk (diff)|
autofs4: d_manage() should return -EISDIR when appropriate in rcu-walk mode.
If rcu-walk mode we don't *have* to return -EISDIR for non-mount-traps as we will simply drop into REF-walk and handling DCACHE_NEED_AUTOMOUNT dentrys the slow way. But it is better if we do when possible. In 'oz_mode', use the same condition as ref-walk: if not a mountpoint, then it must be -EISDIR. In regular mode there are most tests needed. Most of them can be performed without taking any spinlocks. If we find a directory that isn't obviously empty, and isn't mounted on, we need to call 'simple_empty()' which does take a spinlock. If this turned out to hurt performance, some other approach could be found to signal when a directory is known to be empty. Signed-off-by: NeilBrown <email@example.com> Reviewed-by: Ian Kent <firstname.lastname@example.org> Tested-by: Ian Kent <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Diffstat (limited to 'fs/autofs4/Kconfig')
0 files changed, 0 insertions, 0 deletions