diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-28 10:00:56 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-21 14:56:40 -0400 |
commit | 87a3e08121cbb59a314fc727b4f1202782ed56b1 (patch) | |
tree | eaaee4978a99318087b81674b9ba288bf36cd33e /net/netlink | |
parent | 7cc822650f9fa6f2f1eccc7acdb43e90c1b2ecdf (diff) |
vmalloc doesn't correctly respect gfp flags - gfp flags aren't used for
pte allocation, so doing vmalloc/kvmalloc allocations with reclaim
unsafe locks is a potential deadlock.
Note that we also want to use PF_MEMALLOC_NORECLAIM, not
PF_MEMALLOC_NOFS, because when we're doing allocations with btree locks
held we have a fallback available - drop locks and do a normal
GFP_KERNEL allocation. We don't want to be invoking reclaim with btree
locks held at all, since these are big shared locks and overalll system
performance is sensitive to hold times.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions