We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 136d3e0 commit b078553Copy full SHA for b078553
fs/jbd2/journal.c
@@ -220,15 +220,12 @@ static int kjournald2(void *arg)
220
* so we don't sleep
221
*/
222
DEFINE_WAIT(wait);
223
- int should_sleep = 1;
224
225
prepare_to_wait(&journal->j_wait_commit, &wait,
226
TASK_INTERRUPTIBLE);
227
transaction = journal->j_running_transaction;
228
- if (transaction && time_after_eq(jiffies,
229
- transaction->t_expires))
230
- should_sleep = 0;
231
- if (should_sleep) {
+ if (transaction == NULL ||
+ time_before(jiffies, transaction->t_expires)) {
232
write_unlock(&journal->j_state_lock);
233
schedule();
234
write_lock(&journal->j_state_lock);
0 commit comments