OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2021-gff368a7
Gerrit Code Review
Sat, 24 Dec 2011 21:47:16 -0800 (PST)
The following commit has been merged in the master branch:
Author: Jeffrey Altman <firstname.lastname@example.org>
Date: Sat Dec 24 03:15:53 2011 -0500
Windows: avoid race in cm_GetNewSCache
The cm_scacheLock is dropped while walking the scache LRU queue.
As a result it is possible for the cm_scache_t that is being
considered for recycling to be accessed and moved to the head
of the queue.
Track the prev and next pointers so it is possible to detect if
the cm_scache_t that is about to be recycled has been moved. If
so, restart the search from the tail.
Tested-by: BuildBot <email@example.com>
Reviewed-by: Jeffrey Altman <firstname.lastname@example.org>
Tested-by: Jeffrey Altman <email@example.com>
src/WINNT/afsd/cm_scache.c | 55 +++++++++++++++++++++++++++++++++++++------
1 files changed, 47 insertions(+), 8 deletions(-)
OpenAFS Master Repository