diff options
author | jeff <jeff@FreeBSD.org> | 2002-09-25 02:38:43 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-09-25 02:38:43 +0000 |
commit | 5c7f8a426d77fd9157454ef8c03ad4298759b909 (patch) | |
tree | 92aceb1e68b4986cdcf026c3e92a8d9144c2ce36 /sys/nfsclient/nfs_bio.c | |
parent | 906daccf7224474d155117b8c9b209624ea6ec01 (diff) | |
download | FreeBSD-src-5c7f8a426d77fd9157454ef8c03ad4298759b909.zip FreeBSD-src-5c7f8a426d77fd9157454ef8c03ad4298759b909.tar.gz |
- Lock access to the buf lists.
- Use vrefcnt() where appropriate.
- Add some locking asserts.
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index d8243ae..f88b04c 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -1344,7 +1344,7 @@ nfs_doio(struct buf *bp, struct ucred *cr, struct thread *td) uiop->uio_resid = 0; } } - mp_fixme("Accessing VV_TEXT without a lock."); + ASSERT_VOP_LOCKED(vp, "nfs_doio"); if (p && (vp->v_vflag & VV_TEXT) && (np->n_mtime != np->n_vattr.va_mtime.tv_sec)) { uprintf("Process killed due to text file modification\n"); |