]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jbd2: wake up journal waiters in FIFO order, not LIFO
authorAndrew Perepechko <anserper@ya.ru>
Wed, 7 Sep 2022 16:59:59 +0000 (19:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:56:53 +0000 (09:56 +0200)
commitaa972fe0f2aba854eb3003f7d166f1277ba1d8ac
treeea401958d9cf11f15bb7d613f2df570e2c4c0635
parente168f819bfa42459b14f479e55ebd550bcc78899
jbd2: wake up journal waiters in FIFO order, not LIFO

commit 34fc8768ec6089565d6d73bad26724083cecf7bd upstream.

LIFO wakeup order is unfair and sometimes leads to a journal
user not being able to get a journal handle for hundreds of
transactions in a row.

FIFO wakeup can make things more fair.

Cc: stable@kernel.org
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@gmail.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20220907165959.1137482-1-alexey.lyashkov@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/commit.c
fs/jbd2/transaction.c