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 5a042aa commit 09f40f9Copy full SHA for 09f40f9
mm/backing-dev.c
@@ -401,6 +401,13 @@ static int bdi_forker_thread(void *ptr)
401
}
402
403
spin_lock_bh(&bdi_lock);
404
+ /*
405
+ * In the following loop we are going to check whether we have
406
+ * some work to do without any synchronization with tasks
407
+ * waking us up to do work for them. So we have to set task
408
+ * state already here so that we don't miss wakeups coming
409
+ * after we verify some condition.
410
+ */
411
set_current_state(TASK_INTERRUPTIBLE);
412
413
list_for_each_entry(bdi, &bdi_list, bdi_list) {
0 commit comments