cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c

LI Xin delphij at delphij.net
Thu Aug 2 23:29:34 PDT 2007


Xin LI wrote:
> delphij     2007-08-03 06:24:31 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/fs/tmpfs         tmpfs.h tmpfs_subr.c 
>   Log:
>   MFp4 - Refine locking to eliminate some potential race/panics:
>   
>    - Copy before testing a pointer.  This closes a race window.
>    - Use msleep with the node interlock instead of tsleep.
>    - Do proper locking around access to tn_vpstate.
>    - Assert vnode VOP lock for dir_{atta,de}tach to capture
>      inconsistent locking.
>   
>   Suggested by:   kib
>   Submitted by:   delphij
>   Reviewed by:    Howard Su
>   Approved by:    re (tmpfs blanket)

Should have mentioned that this is done in response of pho@'s stress
test.  Thanks goes to him for all these hard work!

Cheers,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070803/7a16e8e5/signature.pgp


More information about the cvs-src mailing list