[LTP] [PATCH] madvise11: ignore EBUSY for MADV_SOFT_OFFLINE
Petr Vorel
pvorel@suse.cz
Thu May 9 15:40:29 CEST 2024
Hi Li,
...
> +++ b/testcases/kernel/syscalls/madvise/madvise11.c
> @@ -128,6 +128,8 @@ static int allocate_offline(int tnum)
> return -1;
> if (madvise(ptrs[num_alloc], pagesize, MADV_SOFT_OFFLINE) == -1) {
> + if (errno == EBUSY)
> + continue;
LGTM
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
> if (errno != EINVAL)
> tst_res(TFAIL | TERRNO, "madvise failed");
> if (errno == EINVAL)
More information about the ltp
mailing list