linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] improve memalloc scope APIs usage
@ 2020-04-09 14:17 colyli
  2020-04-09 14:17 ` [PATCH v3 1/4] md: use memalloc scope APIs in mddev_suspend()/mddev_resume() colyli
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: colyli @ 2020-04-09 14:17 UTC (permalink / raw)
  To: songliubraving, linux-raid
  Cc: mhocko, kent.overstreet, guoqing.jiang, Coly Li

From: Coly Li <colyli@suse.de>

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(-)

-- 
2.25.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-09 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-09 14:17 [PATCH v3 0/4] improve memalloc scope APIs usage colyli
2020-04-09 14:17 ` [PATCH v3 1/4] md: use memalloc scope APIs in mddev_suspend()/mddev_resume() colyli
2020-04-09 15:05   ` Michal Hocko
2020-04-09 15:16     ` Coly Li
2020-04-09 14:17 ` [PATCH v3 2/4] raid5: remove gfp flags from scribble_alloc() colyli
2020-04-09 14:17 ` [PATCH v3 3/4] raid5: update code comment of scribble_alloc() colyli
2020-04-09 14:17 ` [PATCH v3 4/4] md: remove redundant memalloc scope API usage colyli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).