Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1280475
| Path | csiph.com!au2pb.net!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Linus Torvalds <torvalds@linux-foundation.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] sched: remove false-positive warning from wake_up_process() |
| Date | Tue, 01 Dec 2015 02:50:01 +0100 |
| Message-ID | <qAIeR-32d-3@gated-at.bofh.it> (permalink) |
| References | <qAI5b-2YM-7@gated-at.bofh.it> |
| X-Original-To | Sasha Levin <sasha.levin@oracle.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=48+i8cq2JscuuVkcNTBejjJ9KjIoQW6005F5rm+DAQ4=; b=a7Mc/UdbYROFZv4hlP6Rj5WjNOEJ4QlQUMZ4Ijk/NegUJNsPmiFydcomK/ubFrGrP7 +L0e9moyS4k2oIb8ZxnpqKKL8GmkSplXgAvlKGXkIKXOeyRm4qQXTqDwUHFkkk2x141S 4s+Ceak+k7hpCKUOTo/JT9Te8d5SoGWJ08obEW+RsYgd3n2WyJlTSe/gJSXavVKoWGyf XCiWGzKJlbRkqTfTl91w389urFCoLsGdsc5T2/HOSmNlrBFDIfnVph/KQeGQaZWtCtCM Ca9pOlibW+SCj4CsE09gdyEl9npfS/tJnlqAQdwAvZNye3xMwLcirucjNifSnWkhC03S dcxQ== |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=48+i8cq2JscuuVkcNTBejjJ9KjIoQW6005F5rm+DAQ4=; b=WMlKh7/jMlgiXf//sQkaBNkFSpVNDLEvyIvKPu/IEKmKcxziIMEqebj7MrxqO9tFLO 0c2yLauJcDJFkSPfK2q2VduygGnkD2PHBRaeaFoWp68Wp/YE4iO8fGbGsFaA9h13HMNA 1zyQdy/egl0Ga0xct6Ek1HOhV54LiZiq7NlcQ= |
| MIME-Version | 1.0 |
| X-Received | by 10.107.11.166 with SMTP id 38mr62448106iol.186.1448934457391; Mon, 30 Nov 2015 17:47:37 -0800 (PST) |
| X-Google-Sender-Auth | UKFVfz5rnIZO2ptHV6gp8ebkOVc |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Oleg Nesterov <oleg@redhat.com> |
| X-Original-Date | Mon, 30 Nov 2015 17:47:37 -0800 |
| X-Original-Message-ID | <CA+55aFwKUJPh8NH9dHQwTLUkW=yN-=XYjUA46GO3pT-rjvExvA@mail.gmail.com> |
| X-Original-References | <1448933660-23082-1-git-send-email-sasha.levin@oracle.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1280475 |
Show key headers only | View raw
On Mon, Nov 30, 2015 at 5:34 PM, Sasha Levin <sasha.levin@oracle.com> wrote:
> Futex can have a spurious wake up before we actually wake it up on our own,
> which will trigger this warning if the task is still stopped.
Actually, I think it would presumably be the other way around: a
spurious stale futex wakeup happens *after* the process has been woken
up for some other reason and moved to stopped state.
(The "wake up and move to stopped state" could be for the same reason:
a SIGSTOP signal).
So the setup is presumably something like this:
- on cpu1: futex code is about to go to sleep, adds itself to the
futex hash chains, but then gets interrupted by a SIGSTOP
- in the meantime, on cpu2, the futex is changed, and the wakup code
sees the process from cpu1 on the futex hash chains
- on cpu1, the process has now removed itself from the hash chains,
and goes through the signal code that sets the state to STOPPED
- in the meantime, on cpu2, the futex code now gets around to waking
things up, and sees that stopped state
Roughly.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] sched: remove false-positive warning from wake_up_process() Sasha Levin <sasha.levin@oracle.com> - 2015-12-01 02:40 +0100
Re: [PATCH] sched: remove false-positive warning from wake_up_process() Linus Torvalds <torvalds@linux-foundation.org> - 2015-12-01 02:50 +0100
Re: [PATCH] sched: remove false-positive warning from wake_up_process() Rik van Riel <riel@redhat.com> - 2015-12-01 03:50 +0100
Re: [PATCH] sched: remove false-positive warning from wake_up_process() Linus Torvalds <torvalds@linux-foundation.org> - 2015-12-01 04:20 +0100
Re: [PATCH] sched: remove false-positive warning from wake_up_process() Peter Zijlstra <peterz@infradead.org> - 2015-12-03 13:40 +0100
Re: [PATCH] sched: remove false-positive warning from wake_up_process() Linus Torvalds <torvalds@linux-foundation.org> - 2015-12-03 19:20 +0100
[tip:locking/core] sched/core: Remove false-positive warning from wake_up_process() tip-bot for Sasha Levin <tipbot@zytor.com> - 2015-12-04 13:00 +0100
csiph-web