diff options
| author | NeilBrown <neilb@suse.de> | 2010-10-26 10:33:54 +0400 | 
|---|---|---|
| committer | NeilBrown <neilb@suse.de> | 2010-10-28 10:36:06 +0400 | 
| commit | 6746557f0325a66f57d179126426e38a8ea66945 (patch) | |
| tree | 3b1db04c854b6ccc4752560f0d30c85e6cbbda6a /tools/perf/scripts/python | |
| parent | 4e78064f42ad474ce9c31760861f7fb0cfc22532 (diff) | |
| download | linux-6746557f0325a66f57d179126426e38a8ea66945.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
