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

[ Available lists | Index of cvs-src | Month of Aug 2007 | Week of 3 Aug 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Xin LI <delphij@FreeBSD.org>
Date
3 Aug 2007 06:24:31
Subject
cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c
Message-ID
200708030624.l736OV3b043646@repoman.freebsd.org


[ Hide this part ]
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)

Revision Changes Path
1.9 +1 -0 src/sys/fs/tmpfs/tmpfs.h
1.10 +21 -21 src/sys/fs/tmpfs/tmpfs_subr.c


Elapsed time: 0.100 seconds