summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-10-01 05:01:41 +0000
committerdas <das@FreeBSD.org>2004-10-01 05:01:41 +0000
commitc32ecae4367815947f4f6a316b506e51e28bf2cc (patch)
tree07a219455702c86c254bc19d123fd49e027d1829 /sys/nfsclient
parente399d76f1b87f09aa09947ccc8853979d1ba34c3 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/nfsclient/nfs_bio.c4
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;
OpenPOWER on IntegriCloud