[Bug 238565] panic: vinvalbuf: dirty bufs during unmount if clustered writes return errors

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 30 May 2021 22:22:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238565

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

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

commit 27006229f7a40a18a61a0e8fd270bc583326b690
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-05-30 16:52:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-05-30 22:20:53 +0000

    vinvalbuf: do not panic if we were unable to flush dirty buffers

    Return EBUSY instead and let caller to handle the issue.

    For vgone()/vnode reclamation, caller first does vinvalbuf(V_SAVE),
    which return EBUSY in case dirty buffers where not flushed. Then caller
    calls vinvalbuf(0) due to non-zero return, which gets rid of all dirty
    buffers without dependencies.

    PR:     238565
    Reviewed by:    asomers, mckusick
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D30555

 sys/kern/vfs_subr.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

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