Linux EXT4 FS development
 help / color / mirror / Atom feed
* [PATCH 0/4] jbd2: Avoid infinite transaction commit loop
@ 2024-06-24 17:01 Jan Kara
  2024-06-24 17:01 ` [PATCH v2 1/4] jbd2: Make jbd2_journal_get_max_txn_bufs() internal Jan Kara
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Jan Kara @ 2024-06-24 17:01 UTC (permalink / raw)
  To: Ted Tso; +Cc: linux-ext4, Alexander Coffin, Jan Kara

Hello,

Alexander has reported [1] that when he tries to online-resize a small
filesystem JBD2 eventually BUGs in transaction commit code. This is caused by
online resize code starting a transaction of size close to maximum allowed
transaction size for the journal. When descriptor blocks are added to the
transaction it actually exceeds maximum transaction size and that confuses
start_this_handle() which enters infinite transaction commit loop (see patch 3
for details). This patch series fixes the confusion in start_this_handle().
There's still open question how to make online resizing with tiny journal work.

								Honza

[1] https://lore.kernel.org/all/CA+hUFcuGs04JHZ_WzA1zGN57+ehL2qmHOt5a7RMpo+rv6Vyxtw@mail.gmail.com

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-07-11  2:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 17:01 [PATCH 0/4] jbd2: Avoid infinite transaction commit loop Jan Kara
2024-06-24 17:01 ` [PATCH v2 1/4] jbd2: Make jbd2_journal_get_max_txn_bufs() internal Jan Kara
2024-06-27  6:47   ` Zhang Yi
2024-07-11  2:35   ` Theodore Ts'o
2024-06-24 17:01 ` [PATCH v2 2/4] jbd2: Precompute number of transaction descriptor blocks Jan Kara
2024-06-25  9:31   ` Kemeng Shi
2024-06-25 11:07     ` Jan Kara
2024-06-25 12:02       ` Kemeng Shi
2024-06-27  7:06   ` Zhang Yi
2024-06-24 17:01 ` [PATCH v2 3/4] jbd2: Avoid infinite transaction commit loop Jan Kara
2024-06-26  7:38   ` Zhang Yi
2024-06-26 11:22     ` Jan Kara
2024-06-26 13:24       ` Zhang Yi
2024-06-26 14:55         ` Jan Kara
2024-06-27  6:43           ` Zhang Yi
2024-06-24 17:01 ` [PATCH v2 4/4] jbd2: Drop pointless shrinker batch initialization Jan Kara
2024-06-27  7:07   ` Zhang Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox