From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC8ED1E98F7; Wed, 15 Jan 2025 10:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736937586; cv=none; b=GZrtDgspwV2wutxADao24eZz1CqxLhE+ZN2Amrpbqpxd/EZZpjEvi5+X9622KcefF6gmz3yPRpSzgU8qh6rwUlG4PiLBOAB8u8uGJtr/euhJssffZxoM58CAT4iwz+if1Te+Jg4JKuE6EbVfKmHk4eYLsSvBcyFz6QlDMw08+18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736937586; c=relaxed/simple; bh=yf6eoiAwgi9ugIwo6PFLsFO+uknhCDKBIcL1We0BPho=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RaTBCAjec7nA9KD0GooDOn8qSiE1vK5rjRHqRmO/D2OlrQmndKp6YsT7mvaOHpaNytRJELdIAGjapWZXRriI+CLuLuj2EKLHMiTaIyTH5nzIQVMW93Td0I55uIXNGOVnXAOr7vXWPtAA+B4Nb6Fvkvpboqa6Sk/nBaL6X6KItG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j4jUQ5ld; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="j4jUQ5ld" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32910C4CEE2; Wed, 15 Jan 2025 10:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736937585; bh=yf6eoiAwgi9ugIwo6PFLsFO+uknhCDKBIcL1We0BPho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4jUQ5ld2/6yJeN8sBOT+YtCF1D38I3eFrVqyGEHh0CZ245iqGsPhPu/X7TbeEclN HBgjotTWwqkbday7hdXtKq+6dGvuws9zUZc+owTZScVPy4/e1OqtwPTgoo2CTrLAPy YyD6/mohQvfcYLBmCqTjy70EdMvyaeyh147iAvXE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zhang Yi , Kemeng Shi , Jan Kara , Christian Brauner , Sasha Levin Subject: [PATCH 6.1 04/92] jbd2: increase IO priority for writing revoke records Date: Wed, 15 Jan 2025 11:36:22 +0100 Message-ID: <20250115103547.702475831@linuxfoundation.org> X-Mailer: git-send-email 2.48.0 In-Reply-To: <20250115103547.522503305@linuxfoundation.org> References: <20250115103547.522503305@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zhang Yi [ Upstream commit ac1e21bd8c883aeac2f1835fc93b39c1e6838b35 ] Commit '6a3afb6ac6df ("jbd2: increase the journal IO's priority")' increases the priority of journal I/O by marking I/O with the JBD2_JOURNAL_REQ_FLAGS. However, that commit missed the revoke buffers, so also addresses that kind of I/Os. Fixes: 6a3afb6ac6df ("jbd2: increase the journal IO's priority") Signed-off-by: Zhang Yi Link: https://lore.kernel.org/r/20241203014407.805916-2-yi.zhang@huaweicloud.com Reviewed-by: Kemeng Shi Reviewed-by: Jan Kara Signed-off-by: Christian Brauner Signed-off-by: Sasha Levin --- fs/jbd2/revoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jbd2/revoke.c b/fs/jbd2/revoke.c index 4556e4689024..ce63d5fde9c3 100644 --- a/fs/jbd2/revoke.c +++ b/fs/jbd2/revoke.c @@ -654,7 +654,7 @@ static void flush_descriptor(journal_t *journal, set_buffer_jwrite(descriptor); BUFFER_TRACE(descriptor, "write"); set_buffer_dirty(descriptor); - write_dirty_buffer(descriptor, REQ_SYNC); + write_dirty_buffer(descriptor, JBD2_JOURNAL_REQ_FLAGS); } #endif -- 2.39.5