]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: do uninterruptible sleep in balance_dirty_pages()
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 22 Dec 2010 01:24:21 +0000 (17:24 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Dec 2010 03:43:33 +0000 (19:43 -0800)
commitd4bf2768001bbcd17fb2f0fa5ca5ba42c7393c00
tree78bb90ade76b84312e1e332a02021eb8eb1cda42
parent02e824cd42b298538720533cd2b1f02ff100025b
writeback: do uninterruptible sleep in balance_dirty_pages()

Using TASK_INTERRUPTIBLE in balance_dirty_pages() seems wrong.  If it's
going to do that then it must break out if signal_pending(), otherwise
it's pretty much guaranteed to degenerate into a busywait loop.  Plus we
*do* want these processes to appear in D state and to contribute to load
average.

So it should be TASK_UNINTERRUPTIBLE.                 -- Andrew Morton

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c