All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, Ian Campbell <ian.campbell@citrix.com>
Subject: Re: [PATCH 6/7] libxl: fork: Provide ..._always_selective_reap
Date: Fri, 17 Jan 2014 08:22:30 -0700	[thread overview]
Message-ID: <52D94AB6.5000705@suse.com> (raw)
In-Reply-To: <21209.9256.615318.923918@mariner.uk.xensource.com>

Ian Jackson wrote:
> Jim Fehlig writes ("Re: [PATCH 6/7] libxl: fork: Provide ..._always_selective_reap"):
>   
>> I don't see the assert, regardless of how I call setmode(), when
>> changing this hunk to
>>
>> @@ -264,11 +264,11 @@ static bool chldmode_ours(libxl_ctx *ctx, bool
>> creating)
>>  {
>>      switch (ctx->childproc_hooks->chldowner) {
>>      case libxl_sigchld_owner_libxl:
>> +    case libxl_sigchld_owner_libxl_always_selective_reap:
>>          return creating || !LIBXL_LIST_EMPTY(&ctx->children);
>>      case libxl_sigchld_owner_mainloop:
>>          return 0;
>>      case libxl_sigchld_owner_libxl_always:
>> -    case libxl_sigchld_owner_libxl_always_selective_reap:
>>          return 1;
>>      }
>>      abort();
>>     
>
> I should say: that that works is just luck, I think.

That's what I suspected :).  And I also suspect my luck would run out
once I throw 10's of domains with many concurrent operations in the mix.

> I have a better fix.
>   

Ok, thanks!

Regards,
Jim

  reply	other threads:[~2014-01-17 15:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 17:22 [RFC PATCH 0/7] libxl: fork: Selective reaping Ian Jackson
2014-01-16 17:22 ` [PATCH 1/7] libxl: fork: Break out checked_waitpid Ian Jackson
2014-01-17 11:09   ` Ian Campbell
2014-01-16 17:22 ` [PATCH 2/7] libxl: fork: Break out childproc_reaped_ours Ian Jackson
2014-01-17 11:10   ` Ian Campbell
2014-01-16 17:22 ` [PATCH 3/7] libxl: fork: Clarify docs for libxl_sigchld_owner Ian Jackson
2014-01-17 11:12   ` Ian Campbell
2014-01-17 12:41     ` Ian Jackson
2014-01-16 17:22 ` [PATCH 4/7] libxl: fork: assert that chldmode is right Ian Jackson
2014-01-17 11:13   ` Ian Campbell
2014-01-16 17:22 ` [PATCH 5/7] libxl: fork: Provide libxl_childproc_sigchld_occurred Ian Jackson
2014-01-17 11:22   ` Ian Campbell
2014-01-17 11:27     ` Ian Jackson
2014-01-17 11:29       ` Ian Campbell
2014-01-17 16:09         ` Ian Jackson
2014-01-16 17:22 ` [PATCH 6/7] libxl: fork: Provide ..._always_selective_reap Ian Jackson
2014-01-17  6:36   ` Jim Fehlig
2014-01-17 11:35     ` Ian Jackson
2014-01-17 15:16       ` Jim Fehlig
2014-01-17 16:13         ` Ian Jackson
2014-01-17 12:38     ` Ian Jackson
2014-01-17 15:22       ` Jim Fehlig [this message]
2014-01-17 11:27   ` Ian Campbell
2014-01-16 17:22 ` [PATCH 7/7] libxl: fork: Provide LIBXL_HAVE_SIGCHLD_SELECTIVE_REAP Ian Jackson
2014-01-17 11:27   ` Ian Campbell
2014-01-16 19:25 ` [RFC PATCH 0/7] libxl: fork: Selective reaping Ian Jackson
2014-01-17  6:41   ` Jim Fehlig

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=52D94AB6.5000705@suse.com \
    --to=jfehlig@suse.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.