From: Mikulas Patocka Date: Mon, 22 Jun 2009 09:12:13 +0000 (+0100) Subject: dm raid1: keep retrying alloc if mempool_alloc failed X-Git-Tag: v2.6.31-rc1~8^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a72986c562eeec3f7b992198c168f0f41606fe53;p=pandora-kernel.git dm raid1: keep retrying alloc if mempool_alloc failed If the code can't handle allocation failures, use __GFP_NOFAIL so that in case of memory pressure the allocator will retry indefinitely and won't return NULL which would cause a crash in the function. This is still not a correct fix, it may cause a classic deadlock when memory manager waits for I/O being done and I/O waits for some free memory. I/O code shouldn't allocate any memory. But in this case it probably doesn't matter much in practice, people usually do not swap on RAID. Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed