Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2026 12:46:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 293492] p9fs: VNASSERT failed: locked not true at /usr/src/sys/kern/vfs_subr.c:5816 (assert_vop_elocked)
Message-ID:  <bug-293492-3630-kgrs9u1sXy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-293492-3630@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293492

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=2b256f00aaee4713b8e6f0e3c0f3493065f710c4

commit 2b256f00aaee4713b8e6f0e3c0f3493065f710c4
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-05 12:35:43 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-10 12:44:34 +0000

    p9fs: locking improvements for p9fs_stat_vnode_dotl()

    If the vnode is share-locked:
    - Use vn_delayed_setsize() to avoid calling vnode_pager_setsize() with
      the vnode only shared locked.
    - Interlock the vnode to get exclusive mode for updating the node
      fields.

    Reciprocally, interlock the vnode in p9fs_getattr_dotl() to observe the
    consistent values on read.

    PR:     293492
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D55665

 sys/fs/p9fs/p9fs_vnops.c | 42 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293492-3630-kgrs9u1sXy>