From: Andrew Morton Date: Wed, 5 Oct 2011 00:43:10 +0000 (+1100) Subject: mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix X-Git-Tag: next-20111007~1^2~154 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd599c73b61e099fcedf931d90b51496f0d3f1d9;p=karo-tx-linux.git 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 --- diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 5dcaa3c756d1..6400803f3ae3 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -406,9 +406,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);