From nobody Tue Jan 7 18:33:24 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YSKS42Xzqz5jkFb; Tue, 07 Jan 2025 18:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSKS41qR2z4nv1; Tue, 7 Jan 2025 18:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736274804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8AMjBXbpmFCuy8gE5yoeNUXFOS77T1AUylMNi7Lx5Tk=; b=fWb6rDkducT6Kb3dC4wk+cQXRbX4La1rlezjN47tQThz3vanNMpkSP+iZXUsNpQm4/43WC 7vF8/qEEvKHI92UZVlGjRnXlaAEMhxH4BEa36wKksHBziWIRiqup27lpwwgj1UQcza8QE9 SfTXSqnQS4v31hw26ggt+49BPkmSMF+7SMj/5CoUamfcek/416DBLqK4rIX7Tjaaj/o/1O OFOnMGpV6S2zHEDRR1mA+YuX/b8zqqKrRLwkMlSzv1LSh0/AsvSocoPLrsxmPLRONu57dZ OD/F2BfMMs8QSP5NGfgL4dTwoWSD+echbTNrmbJHbQ6kxOHSWBSKpHQYXZ2W8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736274804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8AMjBXbpmFCuy8gE5yoeNUXFOS77T1AUylMNi7Lx5Tk=; b=fziYh4fHFoMzk1N0GhAOohb9bMAVskbjtF+2ckldY+FN2c202hXt1d244lRiSQ9N+CGklp 4pMz2xBnbw7qXe4NMxjKeavlD2VgARRY98jQT/mEXLRvXtknPW3GmkOZUxoVY8Sp1a5EV1 9Bx5FeCzmgNm6uXChsMDhghnd0TUvwzRWgohi9UZiCn/N8xCx1tQOnRPOMohf55OzGGa6d NKrSkJKPE0NssiTW8BMOrFK1ZqOZ3MrnoWvCO75HVjd0Mwc0KTl9G2qc/BTxWdeeTjUy7j UZKUrCRnvlc35Njl7cyAgUS2ZNpkVxnlgtkffcz4/DzELaOA8SWmHOFLMhjIMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736274804; a=rsa-sha256; cv=none; b=utcZhF1AAjCIS6uuAqvga8TboWUfsf5YJMR0cqoBMTKyGrVuzFxQUsj6LhMGm5HKLT6rYx O/pz5tJEXiRI/d0iWYxRtbs6H8s+u8vTgwjpECtEyX9+QDzBNEXtknaP5XIBwAgZnsOZ4Q FGimbfwTHfx1JRYkn+4hWm5DAk/DTM289+YddweGpjhzB2g0JWWrJt9jIVDAKMvH7u2caD EVRofGbCjk1pskt2s/3MyKMyMe0MFTiNwl652cNBQuscq3PjV4qgl0lbbGkg6bQiclQLLp 4ZuabqE8EjqVFDJ3z1LjFYIc1S05proCk9M9PPO86khwpqNej2jtM6fH25RYKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSKS41QQYz5Tx; Tue, 07 Jan 2025 18:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 507IXOqm066903; Tue, 7 Jan 2025 18:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507IXOxn066900; Tue, 7 Jan 2025 18:33:24 GMT (envelope-from git) Date: Tue, 7 Jan 2025 18:33:24 GMT Message-Id: <202501071833.507IXOxn066900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 02a71cfa504e - stable/13 - SU+J: all writes to SU journal must be exempt from runningbufspace throttling List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 02a71cfa504ebab7b94722068f57c8f4bdd509e2 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=02a71cfa504ebab7b94722068f57c8f4bdd509e2 commit 02a71cfa504ebab7b94722068f57c8f4bdd509e2 Author: Konstantin Belousov AuthorDate: 2024-11-12 06:29:23 +0000 Commit: Konstantin Belousov CommitDate: 2025-01-07 18:31:56 +0000 SU+J: all writes to SU journal must be exempt from runningbufspace throttling PR: 282449 (cherry picked from commit 46f02c4282ff76b66579c83be53ef441ea522536) --- sys/ufs/ffs/ffs_softdep.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index f2df1a8e7fc3..62af80d7eb40 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3625,6 +3625,7 @@ softdep_process_journal(struct mount *mp, int cnt; int off; int devbsize; + int savef; ump = VFSTOUFS(mp); if (ump->um_softdep == NULL || ump->um_softdep->sd_jblocks == NULL) @@ -3636,6 +3637,8 @@ softdep_process_journal(struct mount *mp, fs = ump->um_fs; jblocks = ump->softdep_jblocks; devbsize = ump->um_devvp->v_bufobj.bo_bsize; + savef = curthread_pflags_set(TDP_NORUNNINGBUF); + /* * We write anywhere between a disk block and fs block. The upper * bound is picked to prevent buffer cache fragmentation and limit @@ -3854,12 +3857,15 @@ softdep_process_journal(struct mount *mp, */ if (flags == 0 && jblocks->jb_suspended) { if (journal_unsuspend(ump)) - return; + goto out; FREE_LOCK(ump); VFS_SYNC(mp, MNT_NOWAIT); ffs_sbupdate(ump, MNT_WAIT, 0); ACQUIRE_LOCK(ump); } + +out: + curthread_pflags_restore(savef); } /*