($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: Petr Vorel <pvorel@suse.cz>
Cc: Luis Goncalves <lgoncalv@redhat.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] madvise11: ignore EBUSY for MADV_SOFT_OFFLINE
Date: Fri, 10 May 2024 10:36:49 +0800	[thread overview]
Message-ID: <CAEemH2ezk6Q5UEW8vq-461D6Q-1uU=zgManic6Gf4o3qHvs_rg@mail.gmail.com> (raw)
In-Reply-To: <20240509134029.GA300682@pevik>

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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2024-05-10  2:37 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
2024-05-10  2:36   ` Li Wang [this message]

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='CAEemH2ezk6Q5UEW8vq-461D6Q-1uU=zgManic6Gf4o3qHvs_rg@mail.gmail.com' \
    --to=liwang@redhat.com \
    --cc=lgoncalv@redhat.com \
    --cc=ltp@lists.linux.it \
    --cc=pvorel@suse.cz \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).