[LTP] [PATCH] madvise11: ignore EBUSY for MADV_SOFT_OFFLINE
Li Wang
liwang@redhat.com
Fri May 10 04:36:49 CEST 2024
Patch merged, thank you.
On Thu, May 9, 2024 at 9:40 PM Petr Vorel <pvorel@suse.cz> wrote:
> 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)
>
>
--
Regards,
Li Wang
More information about the ltp
mailing list