]> git.baikalelectronics.ru Git - kernel.git/commit
dm kcopyd: alloc pages from the main page allocator
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 29 May 2011 12:03:07 +0000 (13:03 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sun, 29 May 2011 12:03:07 +0000 (13:03 +0100)
commit07a55c88e6c49c062f5e658b17a0963b1cff6728
tree3a6c152dcb0d062dadfecd9fb8b1866a0fdbfce5
parent84d53808adebeacd1bbbb706e265bdf12d621535
dm kcopyd: alloc pages from the main page allocator

This patch changes dm-kcopyd so that it allocates pages from the main
page allocator with __GFP_NOWARN | __GFP_NORETRY flags (so that it can
fail in case of memory pressure). If the allocation fails, dm-kcopyd
allocates pages from its own reserve.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c