public inbox for ltp@lists.linux.it
 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: Mon, 19 Nov 2018 06:44:26 -0500 (EST)	[thread overview]
Message-ID: <620856561.76271418.1542627866232.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <766642984.70693100.1541602462622.JavaMail.zimbra@redhat.com>


----- Original Message -----
> 
> 
> ----- 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

Pushed with changes from Li's comments.

Regards,
Jan


      reply	other threads:[~2018-11-19 11:44 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
2018-11-19 11:44     ` Jan Stancek [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=620856561.76271418.1542627866232.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox