mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
netlink: Allow direct reclaim for fallback allocation
The backport ofd35c99ff77("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:6d123f1d39("netlink: do not enter direct reclaim from netlink_dump()") Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35c9bfa511
commit
a8d47b4b3c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user