diff options
| author | Coly Li <[email protected]> | 2020-04-09 22:17:21 +0800 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2020-05-13 11:22:31 -0700 |
| commit | ba54d4d4d2844c234f1b4692bd8c9e0f833c8a54 (patch) | |
| tree | b9884abf1983ee60277e27117053500d26a983d4 /tools/perf/scripts/python/bin | |
| parent | 78f57ef9d50a75326da73d352d7c27828495229a (diff) | |
raid5: remove gfp flags from scribble_alloc()
Using GFP_NOIO flag to call scribble_alloc() from resize_chunk() does
not have the expected behavior. kvmalloc_array() inside scribble_alloc()
which receives the GFP_NOIO flag will eventually call kmalloc_node() to
allocate physically continuous pages.
Now we have memalloc scope APIs in mddev_suspend()/mddev_resume() to
prevent memory reclaim I/Os during raid array suspend context, calling
to kvmalloc_array() with GFP_KERNEL flag may avoid deadlock of recursive
I/O as expected.
This patch removes the useless gfp flags from parameters list of
scribble_alloc(), and call kvmalloc_array() with GFP_KERNEL flag. The
incorrect GFP_NOIO flag does not exist anymore.
Fixes: b330e6a49dc3 ("md: convert to kvmalloc")
Suggested-by: Michal Hocko <[email protected]>
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions