Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix

fiddle wording

Cc: Jan Kara <jack@suse.cz>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
20c8c628 99ef0315

+2 -3
+2 -3
mm/backing-dev.c
··· 404 404 /* 405 405 * In the following loop we are going to check whether we have 406 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. 407 + * waking us up to do work for them. Set the task state here 408 + * so that we don't miss wakeups after verifying conditions. 410 409 */ 411 410 set_current_state(TASK_INTERRUPTIBLE); 412 411