Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2021 22:22:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 238565] panic: vinvalbuf: dirty bufs during unmount if clustered writes return errors
Message-ID:  <bug-238565-3630-lrKavc9vKJ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238565-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238565-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238565

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

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D27006229f7a40a18a61a0e8fd270bc583=
326b690

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(-)

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



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