Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 07:58:41 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 861d47845f24 - stable/13 - ffs_syncvnode: only clear IN_NEEDSYNC after successfull sync
Message-ID:  <202102240758.11O7wfZK046401@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=861d47845f248be085e784dc5ab4221e078f8100

commit 861d47845f248be085e784dc5ab4221e078f8100
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-01-23 21:50:55 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-02-24 07:41:58 +0000

    ffs_syncvnode: only clear IN_NEEDSYNC after successfull sync
    
    (cherry picked from commit 1de1e2bfbf3c089418bbe67c096d60315c8ca5dd)
---
 sys/ufs/ffs/ffs_vnops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 68985d8715f3..be2653e32adc 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -257,7 +257,6 @@ ffs_syncvnode(struct vnode *vp, int waitfor, int flags)
 	bool still_dirty, unlocked, wait;
 
 	ip = VTOI(vp);
-	ip->i_flag &= ~IN_NEEDSYNC;
 	bo = &vp->v_bufobj;
 	ump = VFSTOUFS(vp->v_mount);
 
@@ -445,6 +444,8 @@ next:
 	}
 	if (error == 0 && unlocked)
 		error = ERELOOKUP;
+	if (error == 0)
+		ip->i_flag &= ~IN_NEEDSYNC;
 	return (error);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102240758.11O7wfZK046401>