Searched hist:"6746557 f" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | raid10.c | 6746557f Tue Oct 26 01:33:54 CDT 2010 NeilBrown <neilb@suse.de> 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 <neilb@suse.de> 6746557f Tue Oct 26 01:33:54 CDT 2010 NeilBrown <neilb@suse.de> 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 <neilb@suse.de>
|
H A D | raid1.c | 6746557f Tue Oct 26 01:33:54 CDT 2010 NeilBrown <neilb@suse.de> 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 <neilb@suse.de> 6746557f Tue Oct 26 01:33:54 CDT 2010 NeilBrown <neilb@suse.de> 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 <neilb@suse.de>
|