mbox series

[0/4] jbd2: Avoid infinite transaction commit loop

Message ID 20240624165406.12784-1-jack@suse.cz
Headers show
Series jbd2: Avoid infinite transaction commit loop | expand

Message

Jan Kara June 24, 2024, 5:01 p.m. UTC
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