[Bug 238814] geom: topology lock being dropped in dumpconf of gate, raid, & raid3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Oct 2024 15:57:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238814
--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=b37b2543a23b44c78f6d78823dcfcedba46570db
commit b37b2543a23b44c78f6d78823dcfcedba46570db
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-04 14:53:57 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-04 15:56:34 +0000
ggate: Avoid dropping the GEOM topology lock in dumpconf
In general it's not safe to drop the topology lock in these routines, as
GEOM assumes that the mesh will be consistent during traversal.
However, there's no reason we can't hold the topology lock across calls
to g_gate_release(). (Note that g_gate_hold() can be called with the
topology lock held.)
PR: 238814
MFC after: 2 weeks
sys/geom/gate/g_gate.c | 3 ---
1 file changed, 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.