All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/4] syscalls/migrate_pages02: convert to newlib
Date: Wed, 7 Nov 2018 09:54:22 -0500 (EST)	[thread overview]
Message-ID: <766642984.70693100.1541602462622.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAEemH2fHHZ0-pVS+N7eVM6K8z=yTGhBHF1fKFOr516LyyyrZcQ@mail.gmail.com>



----- Original Message -----
> Jan Stancek <jstancek@redhat.com> wrote:
> 
> >
> >                 /* wait until child1 is ready on node1, then migrate and
> >                  * signal to check current node */
> > -               if (read(child1_ready[0], &tmp, 1) != 1)
> > -                       tst_brkm(TBROK | TERRNO, NULL, "read #2 failed");
> > +               TST_CHECKPOINT_WAIT(1);
> >
> 
> Just curious why not start from 0? TST_CHECKPOINT_WAIT(0)

No special reason, I just had in my mind child1 and child2.

> 
> -       tst_record_childstatus(NULL, child2);
> > -       tst_record_childstatus(NULL, child1);
> > +       SAFE_WAITPID(child1, &status, 0);
> > +       SAFE_WAITPID(child2, &status, 0);
> >
> 
> Maybe we could set &wstatus as a NULL? we don't inspect the status
> information after its children terminates so why we store it into &status?

Good point, the status is not needed, since results from children
are propagated automatically.

> Beside that two questions, patch set looks good to me.

Thanks for review,
Jan

> 
> --
> Regards,
> Li Wang
> 

  reply	other threads:[~2018-11-07 14:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 15:46 [LTP] [PATCH 1/4] syscalls/migrate_pages02: convert to newlib Jan Stancek
2018-11-05 15:46 ` [LTP] [PATCH 2/4] syscalls/migrate_pages02: use a separate page for private memory Jan Stancek
2018-11-05 15:46 ` [LTP] [PATCH 3/4] syscalls/migrate_pages02: print /proc stats only on failure Jan Stancek
2018-11-05 15:46 ` [LTP] [PATCH 4/4] syscalls/migrate_pages02: run with numa balancing disabled Jan Stancek
2018-11-07 14:34 ` [LTP] [PATCH 1/4] syscalls/migrate_pages02: convert to newlib Li Wang
2018-11-07 14:54   ` Jan Stancek [this message]
2018-11-19 11:44     ` Jan Stancek

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=766642984.70693100.1541602462622.JavaMail.zimbra@redhat.com \
    --to=jstancek@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.