[Nbd] [PATCH 0/4] more robust PF_MEMALLOC handling
- To: Andrew Morton <akpm@...133...>
- Cc: nbd-general@lists.sourceforge.net, Boris Brezillon <boris.brezillon@...1551...>, Chris Leech <cleech@...696...>, Michal Hocko <mhocko@...1750...>, Richard Weinberger <richard@...2889...>, linux-scsi@...25..., Josef Bacik <jbacik@...2204...>, netdev@...25..., linux-kernel@...25..., stable@...25..., Michal Hocko <mhocko@...1285...>, linux-block@...25..., linux-mm@...1312..., Eric Dumazet <edumazet@...79...>, Lee Duncan <lduncan@...1750...>, Johannes Weiner <hannes@...1554...>, Andrey Ryabinin <aryabinin@...2319...>, open-iscsi@...2887..., Mel Gorman <mgorman@...2888...>, "David S. Miller" <davem@...2890...>, Vlastimil Babka <vbabka@...1290...>
- Subject: [Nbd] [PATCH 0/4] more robust PF_MEMALLOC handling
- From: Vlastimil Babka <vbabka@...1290...>
- Date: Wed, 5 Apr 2017 09:46:56 +0200
- Message-id: <20170405074700.29871-1-vbabka@...1290...>
Hi,
this series aims to unify the setting and clearing of PF_MEMALLOC, which
prevents recursive reclaim. There are some places that clear the flag
unconditionally from current->flags, which may result in clearing a
pre-existing flag. This already resulted in a bug report that Patch 1 fixes
(without the new helpers, to make backporting easier). Patch 2 introduces the
new helpers, modelled after existing memalloc_noio_* and memalloc_nofs_*
helpers, and converts mm core to use them. Patches 3 and 4 convert non-mm code.
Based on next-20170404.
Vlastimil Babka (4):
mm: prevent potential recursive reclaim due to clearing PF_MEMALLOC
mm: introduce memalloc_noreclaim_{save,restore}
treewide: convert PF_MEMALLOC manipulations to new helpers
mtd: nand: nandsim: convert to memalloc_noreclaim_*()
drivers/block/nbd.c | 7 ++++---
drivers/mtd/nand/nandsim.c | 29 +++++++++--------------------
drivers/scsi/iscsi_tcp.c | 7 ++++---
include/linux/sched/mm.h | 12 ++++++++++++
mm/page_alloc.c | 10 ++++++----
mm/vmscan.c | 17 +++++++++++------
net/core/dev.c | 7 ++++---
net/core/sock.c | 7 ++++---
8 files changed, 54 insertions(+), 42 deletions(-)
--
2.12.2
Reply to: