Re: [PATCH 3/5] writeback: stop background/kupdate works fromlivelocking other works

From: Wu Fengguang
Date: Tue Nov 09 2010 - 22:55:25 EST


Jan, the below comment is also updated, please double check.

>
> /*
> + * Background writeout and kupdate-style writeback may
> + * run forever. Stop them if there is other work to do
> + * so that e.g. sync can proceed. They'll be restarted
> + * after the other works are all done.
> + */
> + if ((work->for_background || work->for_kupdate) &&
> + !list_empty(&wb->bdi->work_list))
> + break;
> +
> + /*
> * For background writeout, stop when we are below the
> * background dirty threshold
> */
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/