From: Rabin Vincent <rabin.vincent@axis.com>
To: Tejun Heo <tj@kernel.org>
Cc: Jesper Nilsson <jespern@axis.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH for-3.20-fixes] workqueue: fix hang involving racing cancel[_delayed]_work_sync()'s for PREEMPT_NONE
Date: Tue, 10 Feb 2015 10:33:05 +0100 [thread overview]
Message-ID: <20150210093305.GA6975@axis.com> (raw)
In-Reply-To: <20150209161527.GH3220@htj.duckdns.org>
On Mon, Feb 09, 2015 at 05:15:27PM +0100, Tejun Heo wrote:
> This patch removes the possible hang by updating __cancel_work_timer()
> to explicitly wait for clearing of CANCELING rather than invoking
> flush_work() after try_to_grab_pending() fails with -ENOENT. The
> explicit wait uses the matching bit waitqueue for the CANCELING bit.
>
> Link: http://lkml.kernel.org/g/20150206171156.GA8942@axis.com
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes my synthetic test:
Tested-by: Rabin Vincent <rabin.vincent@axis.com>
Thanks.
/Rabin
next prev parent reply other threads:[~2015-02-10 9:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 17:11 Soft lockups in __cancel_work_timer() Rabin Vincent
2015-02-06 18:01 ` Tejun Heo
2015-02-09 16:15 ` [PATCH for-3.20-fixes] workqueue: fix hang involving racing cancel[_delayed]_work_sync()'s for PREEMPT_NONE Tejun Heo
2015-02-09 16:29 ` Jesper Nilsson
2015-02-10 8:35 ` Jesper Nilsson
2015-02-10 9:33 ` Rabin Vincent [this message]
2015-03-02 12:26 ` Jesper Nilsson
2015-03-02 16:21 ` Tejun Heo
2015-03-03 7:52 ` Jesper Nilsson
2015-03-03 10:00 ` Tomeu Vizoso
2015-03-03 13:21 ` Tejun Heo
2015-03-03 13:45 ` [PATCH wq/for-4.0-fixes v2] " Tejun Heo
2015-03-03 13:57 ` Tomeu Vizoso
2015-03-05 9:24 ` Tomeu Vizoso
2015-03-05 9:36 ` Tejun Heo
2015-03-05 11:46 ` Tejun Heo
2015-03-05 13:03 ` [PATCH v3 wq/for-4.0-fixes] " Tejun Heo
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=20150210093305.GA6975@axis.com \
--to=rabin.vincent@axis.com \
--cc=jespern@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.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.