]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Make task in balance_dirty_pages() killable
authorJan Kara <jack@suse.cz>
Wed, 16 Nov 2011 11:34:48 +0000 (19:34 +0800)
committerWu Fengguang <fengguang.wu@intel.com>
Wed, 16 Nov 2011 11:53:44 +0000 (19:53 +0800)
commitf08b749a0f2513f2762ce3fc14c053d26145ab27
treecbcdc35276936db1d63959261bfbc02dda2b48a3
parent5160a0d53cf078e10e1a06813f9b7adcf41ce324
mm: Make task in balance_dirty_pages() killable

There is no reason why task in balance_dirty_pages() shouldn't be killable
and it helps in recovering from some error conditions (like when filesystem
goes in error state and cannot accept writeback anymore but we still want to
kill processes using it to be able to unmount it).

There will be follow up patches to further abort the generic_perform_write()
and other filesystem write loops, to avoid large write + SIGKILL combination
exceeding the dirty limit and possibly strange OOM.

Reported-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Tested-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
mm/page-writeback.c