[Bug 282449] UFS deadlock with install -S during freebsd-update

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Nov 2024 19:36:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282449

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

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

commit 46f02c4282ff76b66579c83be53ef441ea522536
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-11-12 06:29:23 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-11-13 19:35:03 +0000

    SU+J: all writes to SU journal must be exempt from runningbufspace
throttling

    regardless whether they come from the system thread or initiated from a
    normal thread helping the system.  If we block waiting for other writes,
    that writes might not finish because our journal updates block that.

    Set TDP_NORUNNINGBUF around softdep_process_journal().

    Note: Another solution might be to use bwrite() instead of bawrite() if the
    current thread is subject to the runningbufspace limit.  The exempt
    approach is used to be same as the bufdaemon.

    PR:     282449
    Noted and reviewed by:  markj
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week

 sys/ufs/ffs/ffs_softdep.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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