Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1628070 > unrolled thread
| Started by | Ross Lagerwall <ross.lagerwall@citrix.com> |
|---|---|
| First post | 2017-04-21 11:00 +0200 |
| Last post | 2017-04-21 11:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 4.4-only] netlink: Allow direct reclaim for fallback allocation Ross Lagerwall <ross.lagerwall@citrix.com> - 2017-04-21 11:00 +0200
| From | Ross Lagerwall <ross.lagerwall@citrix.com> |
|---|---|
| Date | 2017-04-21 11:00 +0200 |
| Subject | [PATCH 4.4-only] netlink: Allow direct reclaim for fallback allocation |
| Message-ID | <tyCA2-3Hw-11@gated-at.bofh.it> |
The backport of d35c99ff77ec ("netlink: do not enter direct reclaim from
netlink_dump()") to the 4.4 branch (first in 4.4.32) mistakenly removed
direct claim from the initial large allocation and the fallback
allocation which means that allocations can spuriously fail.
Fix the issue by adding back the direct reclaim flag to the fallback
allocation.
Fixes: 6d123f1d396b ("netlink: do not enter direct reclaim from netlink_dump()")
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
---
net/netlink/af_netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 8e33019..acfb16f 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2107,7 +2107,7 @@ static int netlink_dump(struct sock *sk)
if (!skb) {
alloc_size = alloc_min_size;
skb = netlink_alloc_skb(sk, alloc_size, nlk->portid,
- (GFP_KERNEL & ~__GFP_DIRECT_RECLAIM));
+ GFP_KERNEL);
}
if (!skb)
goto errout_skb;
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web