diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-09-24 16:14:34 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-09-24 16:20:25 +0000 |
| commit | dd16a5f53b0b2e967d20d2900f18fc320997679b (patch) | |
| tree | c1b0384c804bb46af146eacd49dc9b8a35422fec /usr.bin/indent/parse.c | |
| parent | c14281f6bb462ca03383d92a0d88228e9426268e (diff) | |
A race is possible otherwise: vfs_busy() may return after an unmounted
filesystem has been removed from the global mount list. That is,
vfs_busy() will block until vfs_mount_destroy() sets MNTK_REFEXPIRE, and
at that point the mountpoint has been removed from the mountlist, so
TAILQ_FOREACH can return an invalid value.
Simply do not block if the mountpoint is being unmounted.
Reviewed by: kib
Fixes: eca39864f702 ("Add sysctl KERN_LOCKF")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59982
Diffstat (limited to 'usr.bin/indent/parse.c')
0 files changed, 0 insertions, 0 deletions
