All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Julian Anastasov <ja@ssi.bg>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Paul McKenney <paulmck@linux.vnet.ibm.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	netfilter-devel@vger.kernel.org, pablo@netfilter.org
Subject: Re: [PATCH 6/6] sched, wait: Make the __wait_event*() interface more friendly
Date: Tue, 1 Oct 2013 19:19:50 +0200	[thread overview]
Message-ID: <20131001171950.GA16145@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1310011054280.1710@ja.ssi.bg>

On 10/01, Julian Anastasov wrote:
>
> 	Hello,
>
> > On Fri, Sep 27, 2013 at 06:15:07PM +0200, Peter Zijlstra wrote:
> > > +++ b/net/netfilter/ipvs/ip_vs_sync.c
> > > @@ -1637,12 +1637,9 @@ static int sync_thread_master(void *data
> > >                     continue;
> > >             }
> > >             while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) {
> > > -                   int ret = 0;
> > > -
> > > -                   __wait_event_interruptible(*sk_sleep(sk),
> > > +                   int ret =
> __wait_event_interruptible(*sk_sleep(sk),
> > >                                                sock_writeable(sk) ||
> > > -                                              kthread_should_stop(),
> > > -                                              ret);
> > > +                                              kthread_should_stop());
> > >                     if (unlikely(kthread_should_stop()))
> > >                             goto done;
> > >             }
> >
> > That site seems to be ignoring the interruptible state... seems wrong.
>
> 	This is a kthread which ignores signals by default.
> It terminates only with kthread_stop.

This only means that (with or without this change)
__wait_event_interruptible() generates the dead code but this
thread doesn't contribute to load_avg.

Anyway this patch should not makes any difference.

Oleg.


  reply	other threads:[~2013-10-01 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-01  8:00 [PATCH 6/6] sched, wait: Make the __wait_event*() interface more friendly Julian Anastasov
2013-10-01 17:19 ` Oleg Nesterov [this message]
2013-10-01 19:58   ` Julian Anastasov
  -- strict thread matches above, loose matches on Subject: below --
2013-09-30 15:22 [PATCH 0/6] sched, wait: Collapse __wait_event macros -v4 Peter Zijlstra
2013-09-30 15:22 ` [PATCH 6/6] sched, wait: Make the __wait_event*() interface more friendly Peter Zijlstra
2013-10-01  6:39   ` Ingo Molnar
     [not found] <20130927161501.323694767@infradead.org>
     [not found] ` <20130927161852.137894317@infradead.org>
2013-09-27 17:08   ` Peter Zijlstra

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=20131001171950.GA16145@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=ja@ssi.bg \
    --cc=mingo@kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /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.