The branch stable/15 has been updated by kib:

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

commit abe9c47be9ca52cdd8609f0185f728482f50f638
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-07-27 13:41:09 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-08-05 06:12:48 +0000

    statfs(2): allow to interrupt busying
    
    (cherry picked from commit b72f9bfc4513e3e286fb3fc2d07ebdd94ed7ac57)
---
 sys/kern/vfs_syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index c27671bcfc28..8096ffc7be6c 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -278,7 +278,7 @@ kern_do_statfs(struct thread *td, struct mount *mp, struct 
statfs *buf)
 
        if (mp == NULL)
                return (EBADF);
-       error = vfs_busy(mp, 0);
+       error = vfs_busy(mp, MBF_PCATCH);
        vfs_rel(mp);
        if (error != 0)
                return (error);

Reply via email to