Date: Tue, 18 Apr 2023 23:22:07 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7aeea73e3078 - main - syncer vnode: add VOP_GETWRITEMOUNT() definition explicitly Message-ID: <202304182322.33INM7t3011435@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7aeea73e30789c8987fbfa52cde93bab577bbc09 commit 7aeea73e30789c8987fbfa52cde93bab577bbc09 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-04-16 17:04:53 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-04-18 23:21:40 +0000 syncer vnode: add VOP_GETWRITEMOUNT() definition explicitly Since syncer vnode vector does not provide a fallback to the default one, its VOP_GETWRITEMOUNT() implementation implicitly returned EOPNOTSUPP, which means that syncer ignored suspension. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/vfs_subr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 475467da3c34..eac6fa0ddb6a 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -4986,6 +4986,7 @@ static struct vop_vector sync_vnodeops = { .vop_bypass = VOP_EOPNOTSUPP, .vop_close = sync_close, .vop_fsync = sync_fsync, + .vop_getwritemount = vop_stdgetwritemount, .vop_inactive = sync_inactive, .vop_need_inactive = vop_stdneed_inactive, .vop_reclaim = sync_reclaim,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304182322.33INM7t3011435>