From: NeilBrown Date: Tue, 26 Oct 2010 06:33:54 +0000 (+1100) Subject: md: use bio_kmalloc rather than bio_alloc when failure is acceptable. X-Git-Tag: v2.6.37-rc1~43^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6746557f0325a66f57d179126426e38a8ea66945;p=pandora-kernel.git md: use bio_kmalloc rather than bio_alloc when failure is acceptable. bio_alloc can never fail (as it uses a mempool) but an block indefinitely, especially if the caller is holding a reference to a previously allocated bio. So these to places which both handle failure and hold multiple bios should not use bio_alloc, they should use bio_kmalloc. Signed-off-by: NeilBrown --- Reading git-diff-tree failed