Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20c8c628 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 99ef0315
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -404,9 +404,8 @@ static int bdi_forker_thread(void *ptr)
		/*
		/*
		 * In the following loop we are going to check whether we have
		 * In the following loop we are going to check whether we have
		 * some work to do without any synchronization with tasks
		 * some work to do without any synchronization with tasks
		 * waking us up to do work for them. So we have to set task
		 * waking us up to do work for them. Set the task state here
		 * state already here so that we don't miss wakeups coming
		 * so that we don't miss wakeups after verifying conditions.
		 * after we verify some condition.
		 */
		 */
		set_current_state(TASK_INTERRUPTIBLE);
		set_current_state(TASK_INTERRUPTIBLE);