diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-10-31 20:08:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:49 -0400 |
commit | 20c8c62891a346e09c8d26de41ce78bd7a76c5b0 (patch) | |
tree | 6e0a81457ee2c142f96e6e3db66c479eac21fc4a /mm/backing-dev.c | |
parent | 99ef0315f1b320f392acc4364598340e78758fd2 (diff) |
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>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) | |||
404 | /* | 404 | /* |
405 | * In the following loop we are going to check whether we have | 405 | * In the following loop we are going to check whether we have |
406 | * some work to do without any synchronization with tasks | 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 | 407 | * waking us up to do work for them. Set the task state here |
408 | * state already here so that we don't miss wakeups coming | 408 | * so that we don't miss wakeups after verifying conditions. |
409 | * after we verify some condition. | ||
410 | */ | 409 | */ |
411 | set_current_state(TASK_INTERRUPTIBLE); | 410 | set_current_state(TASK_INTERRUPTIBLE); |
412 | 411 | ||