Subject: CVS commit: src/sys/fs/puffs
To: None <source-changes@NetBSD.org>
From: Antti Kantee <pooka@netbsd.org>
List: source-changes
Date: 09/27/2007 14:35:16
Module Name:	src
Committed By:	pooka
Date:		Thu Sep 27 14:35:15 UTC 2007

Modified Files:
	src/sys/fs/puffs: puffs_subr.c puffs_sys.h puffs_transport.c
	    puffs_vfsops.c puffs_vnops.c

Log Message:
Fix a race in how new cookies are checked.  Previously the checking
was done separate of inserting the cookie into the lookup structure
and without any form of interlock.  This could lead to the same
cookie pointing to two different nodes.  Remedy the race by creating
a separate "checked and ready to be inserted" cookie list which
serves as an interlock without having to hold a fs-global creation
lock.


To generate a diff of this commit:
cvs rdiff -r1.46 -r1.47 src/sys/fs/puffs/puffs_subr.c
cvs rdiff -r1.49 -r1.50 src/sys/fs/puffs/puffs_sys.h
cvs rdiff -r1.22 -r1.23 src/sys/fs/puffs/puffs_transport.c
cvs rdiff -r1.56 -r1.57 src/sys/fs/puffs/puffs_vfsops.c
cvs rdiff -r1.98 -r1.99 src/sys/fs/puffs/puffs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.