From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] madvise11: ignore EBUSY for MADV_SOFT_OFFLINE
Date: Thu, 9 May 2024 15:40:29 +0200 [thread overview]
Message-ID: <20240509134029.GA300682@pevik> (raw)
In-Reply-To: <20240509102802.20091-1-liwang@redhat.com>
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)
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-05-09 13:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-09 10:28 [LTP] [PATCH] madvise11: ignore EBUSY for MADV_SOFT_OFFLINE Li Wang
2024-05-09 13:40 ` Petr Vorel [this message]
2024-05-10 2:36 ` Li Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240509134029.GA300682@pevik \
--to=pvorel@suse.cz \
--cc=lgoncalv@redhat.com \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox