OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-35-g5076dfc
Gerrit Code Review
Mon, 1 Jan 2018 22:05:38 -0500
The following commit has been merged in the master branch:
Author: Mark Vitale <email@example.com>
Date: Thu Nov 30 17:56:13 2017 -0500
LINUX: consolidate duplicate code in osi_TryEvictDentries
The two stanzas for HAVE_DCACHE_LOCK are now functionally identical;
remove the preprocessor conditionals and duplicate code.
Minor functional change is incurrred for very old (before 2.6.38) Linux
versions that have dcache_lock; we are now obtaining the d_lock as well.
This is safe because d_lock is also quite old (pre-git, 2.6.12), and it
is a spinlock that's only held for checking d_unhashed. Therefore, it
should have negligible performance impact. It cannot cause deadlocks or
violate locking order, because spinlocks can't be held across sleeps.
Reviewed-by: Benjamin Kaduk <firstname.lastname@example.org>
Reviewed-by: Andrew Deason <email@example.com>
Tested-by: BuildBot <firstname.lastname@example.org>
src/afs/LINUX/osi_vcache.c | 23 +----------------------
1 files changed, 1 insertions(+), 22 deletions(-)
OpenAFS Master Repository