diff options
author | das <das@FreeBSD.org> | 2004-10-01 05:01:41 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-10-01 05:01:41 +0000 |
commit | c32ecae4367815947f4f6a316b506e51e28bf2cc (patch) | |
tree | 07a219455702c86c254bc19d123fd49e027d1829 /sys/nfsclient/nfs_bio.c | |
parent | e399d76f1b87f09aa09947ccc8853979d1ba34c3 (diff) | |
download | FreeBSD-src-c32ecae4367815947f4f6a316b506e51e28bf2cc.zip FreeBSD-src-c32ecae4367815947f4f6a316b506e51e28bf2cc.tar.gz |
nfsclient/nfs_bio.c has a PHOLD() without a PRELE(). Neither should
be necessary here. Also, use killproc() instead of psignal().
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index d05180d..5364af4 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -1354,10 +1354,8 @@ nfs_doio(struct vnode *vp, struct buf *bp, struct ucred *cr, struct thread *td) /* 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"); PROC_LOCK(p); - psignal(p, SIGKILL); - _PHOLD(p); + killproc(p, "text file modification"); PROC_UNLOCK(p); } break; |