Skip to content

improve memalloc scope APIs usage

[email protected] linux-raid 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v24 patches 2 repliesApplied

Changelog from the cover letter

v3: Minor code cleanup.
v2: Add memalloc scope APIs in raid array suspend context.
v1: Original version to add memalloc scope APIs in resize_chunks().

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4md: use memalloc scope APIs in mddev_suspend()/mddev_resume()drivers/md/md.c drivers/md/md.h+5 -02 replies
2/4raid5: remove gfp flags from scribble_alloc()drivers/md/raid5.c+9 -60 replies
3/4raid5: update code comment of scribble_alloc()drivers/md/raid5.c+5 -20 replies
4/4md: remove redundant memalloc scope API usagedrivers/md/md.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] improve memalloc scope APIs usage

From: Coly Li <[email protected]>

Hi folks,

The motivation of this series is to fix the incorrect GFP_NOIO flag usage in drivers/md/raid5.c:resize_chunks(). I take the suggestion from Michal Hocko to use memalloc scope APIs in unified entry point mddev_suspend()/mddev_resume(). Also I get rid of the incorect GFP_NOIO usage for scribble_alloc(), and remove redundant memalloc scope APIs usage in mddev_create_serial_pool(), also as Song Liu suggested, update the code comments on the header of scribble_alloc().

Thank you in advance for the review and comments.

Coly Li
---
Changelog:
v3: Minor code cleanup.
v2: Add memalloc scope APIs in raid array suspend context.
v1: Original version to add memalloc scope APIs in resize_chunks().

Coly Li (4):
md: use memalloc scope APIs in mddev_suspend()/mddev_resume()
raid5: remove gfp flags from scribble_alloc()
raid5: update code comment of scribble_alloc()
md: remove redundant memalloc scope API usage

 drivers/md/md.c    | 12 ++++++++----
 drivers/md/md.h    |  1 +
 drivers/md/raid5.c | 22 ++++++++++++++--------
 3 files changed, 23 insertions(+), 12 deletions(-)
Signature · 1 line
2.25.0