diff options
| author | Andrew Perepechko <[email protected]> | 2022-09-07 16:59:59 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-10-01 03:46:52 +0000 |
| commit | 34fc8768ec6089565d6d73bad26724083cecf7bd (patch) | |
| tree | 354ff9c6bc4be4c475e0c5c5a9a029d50ae101c9 /fs/jbd2/commit.c | |
| parent | ext4: place buffer head allocation before handle start (diff) | |
| download | kernel-34fc8768ec6089565d6d73bad26724083cecf7bd.tar.gz kernel-34fc8768ec6089565d6d73bad26724083cecf7bd.zip | |
jbd2: wake up journal waiters in FIFO order, not LIFO
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: [email protected]
Signed-off-by: Alexey Lyashkov <[email protected]>
Reviewed-by: Ritesh Harjani (IBM) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
| -rw-r--r-- | fs/jbd2/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 6b51d2dc56e2..885a7a6cc53e 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -568,7 +568,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) journal->j_running_transaction = NULL; start_time = ktime_get(); commit_transaction->t_log_start = journal->j_head; - wake_up(&journal->j_wait_transaction_locked); + wake_up_all(&journal->j_wait_transaction_locked); write_unlock(&journal->j_state_lock); jbd2_debug(3, "JBD2: commit phase 2a\n"); |
