From cec9a597e41299c40c88d119e976b1a1e5ca65b6 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sun, 29 Mar 2015 14:39:41 +0000 Subject: [PATCH] WAPBL tx is always locked by ufs_bufrd caller, so never unlock it. --- sys/ufs/ufs/ufs_readwrite.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c index 881c1d2ca8e2..4f31ad84ee77 100644 --- a/sys/ufs/ufs/ufs_readwrite.c +++ b/sys/ufs/ufs/ufs_readwrite.c @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_readwrite.c,v 1.115 2015/03/28 19:24:05 maxv Exp $ */ +/* $NetBSD: ufs_readwrite.c,v 1.116 2015/03/29 14:39:41 riastradh Exp $ */ /*- * Copyright (c) 1993 @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.115 2015/03/28 19:24:05 maxv Exp $"); +__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.116 2015/03/29 14:39:41 riastradh Exp $"); #ifdef LFS_READWRITE #define FS struct lfs @@ -610,8 +610,6 @@ BUFWR(struct vnode *vp, struct uio *uio, int ioflag, kauth_cred_t cred) error = ufs_post_write_update(vp, uio, ioflag, cred, osize, resid, extended, error); - if ((ioflag & IO_JOURNALLOCKED) == 0) - UFS_WAPBL_END(vp->v_mount); fstrans_done(vp->v_mount); return (error);