From: Andrew Morton Date: Tue, 1 Nov 2011 00:08:54 +0000 (-0700) Subject: mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix X-Git-Tag: v3.2-rc1~108^2~79 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=20c8c62891a346e09c8d26de41ce78bd7a76c5b0;hp=99ef0315f1b320f392acc4364598340e78758fd2 mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix fiddle wording Cc: Jan Kara Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/backing-dev.c b/mm/backing-dev.c index a87da524a4a0..7520ef0bfd47 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -404,9 +404,8 @@ static int bdi_forker_thread(void *ptr) /* * In the following loop we are going to check whether we have * some work to do without any synchronization with tasks - * waking us up to do work for them. So we have to set task - * state already here so that we don't miss wakeups coming - * after we verify some condition. + * waking us up to do work for them. Set the task state here + * so that we don't miss wakeups after verifying conditions. */ set_current_state(TASK_INTERRUPTIBLE);