Re: [PATCH v2 1/2] selftests/mm: track the modules run_vmtests.sh loads
From: Jose A. Perez de Azpillaga
Date: Wed Oct 28 2026 - 04:03:04 EST
On 10/17/26 5:07 PM, Qiliang Yuan wrote:
[snip]
> +# Usage: load_module [module]
> +load_module() {
> + if [ -d "/sys/module/$1" ]; then
> + return 0
> + fi
nice, this also stops it from unloading a hwpoison_inject it didn't load.
tested it on x86_64 in qemu with lockdep and DEBUG_VM, with
hwpoison_inject as a module. LGTM so:
Reviewed-by: Jose A. Perez de Azpillaga <azpijr@xxxxxxxxx>
Tested-by: Jose A. Perez de Azpillaga <azpijr@xxxxxxxxx>
--
cheers,
jose a. p-a