lkml.org 
[lkml]   [2011]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] mm: Add comment explaining task state setting in bdi_forker_thread()
> grammar can often be fixed/improved by deleting stuff ;)
>
> --- a/mm/backing-dev.c~mm-add-comment-explaining-task-state-setting-in-bdi_forker_thread-fix
> +++ a/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);

That's nice and readable, thanks!

Regards,
Fengguang


\
 
 \ /
  Last update: 2011-09-08 02:31    [W:0.145 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site