]> git.sesse.net Git - bcachefs-tools-debian/commit
Don't run shrinkers without GFP_KERNEL
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 11 Oct 2022 04:39:06 +0000 (00:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 11 Oct 2022 04:39:06 +0000 (00:39 -0400)
commit81aef3395759058186d847421353c50e1e79ba06
tree05a98327efaf3ba2415d2c1fd166a3d54bfe4312
parent72add8822c47e5801d4ac6d42af8c5d9d7b4d3c9
Don't run shrinkers without GFP_KERNEL

This would correspond to GFP_RECLAIM in the kernel - but we don't
distinguish between different types of reclaim here.

This solves a deadlock in the btree node memory allocation path - we
allocate with the btree node cache lock held but without GFP_KERNEL set.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/types.h
linux/shrinker.c