OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-604-gb6576d8
Gerrit Code Review
Wed, 29 Dec 2010 11:51:15 -0800 (PST)
The following commit has been merged in the master branch:
Author: Jeffrey Altman <firstname.lastname@example.org>
Date: Wed Dec 29 11:35:17 2010 -0500
Windows: buf_CleanAsync scp->fid == bp->fid
If buf_CleanAsync or buf_CleanAsyncLocked are called
with a non-NULL cm_scache_t parameter, that status object's
fid must be the same as the associated cm_buf_t object.
If not, the wrong locks will be held.
If the cm_scache_t parameter is NULL and cm_FindSCache()
returns NULL, it means that the cm_scache_t object associated
with the bp->fid has been flushed from the cache. cm_GetSCache()
must therefore be called to allocate a new status object for the
FID. If the status object cannot be allocated, then any dirty
data stored in the buffer will be discarded.
Tested-by: BuildBot <email@example.com>
Tested-by: Jeffrey Altman <firstname.lastname@example.org>
Reviewed-by: Jeffrey Altman <email@example.com>
src/WINNT/afsd/cm_buf.c | 64 ++++++++++++++++++++++++++++++++--------------
1 files changed, 44 insertions(+), 20 deletions(-)
OpenAFS Master Repository