This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use call_usermodehelper() when testing the shrinker callback.
If the usermode helper enters an infinite loop, we will hang. I caught this when debugging an infinite loop in `drop_slab()` on Linux 3.12.y. Instead of doing an upcall into userland, lets write to the file directly from the kernel. This does not solve the infinite loop in `shrink_slab()`, but it makes debugging such issues easier, makes the code cleaner and makes the test suite slightly faster. Signed-off-by: Richard Yao <ryao@gentoo.org>
- Loading branch information