From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E759FC433DF for ; Fri, 12 Jun 2020 13:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C75F120792 for ; Fri, 12 Jun 2020 13:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgFLNJz (ORCPT ); Fri, 12 Jun 2020 09:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbgFLNJz (ORCPT ); Fri, 12 Jun 2020 09:09:55 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5BEC03E96F; Fri, 12 Jun 2020 06:09:54 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jjjRQ-0003yU-4A; Fri, 12 Jun 2020 15:09:52 +0200 Date: Fri, 12 Jun 2020 15:09:52 +0200 From: Sebastian Andrzej Siewior To: zanussi@kernel.org Cc: LKML , linux-rt-users , Steven Rostedt , Thomas Gleixner , Carsten Emde , John Kacur , Daniel Wagner , Clark Williams , Pavel Machek Subject: Re: [PATCH RT 3/4] tasklet: Fix UP case for tasklet CHAINED state Message-ID: <20200612130952.wzyzebdc2wxahxkh@linutronix.de> References: <2262ed0571ef9c2f24752189b55c965ce9c16d2f.1591898986.git.zanussi@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2262ed0571ef9c2f24752189b55c965ce9c16d2f.1591898986.git.zanussi@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-11 13:10:16 [-0500], zanussi@kernel.org wrote: > commit 62d0a2a30cd0 (tasklet: Address a race resulting in > double-enqueue) addresses a problem that can result in a tasklet being > enqueued on two cpus at the same time by combining the RUN flag with a > new CHAINED flag, and relies on the combination to be present in order > to zero it out, which can never happen on (!SMP and !PREEMPT_RT_FULL) > because the RUN flag is SMP/PREEMPT_RT_FULL-only. > > So make sure the above commit is only applied for the SMP || > PREEMPT_RT_FULL case. > > Fixes: 62d0a2a30cd0 ("tasklet: Address a race resulting in double-enqueue") > Signed-off-by: Tom Zanussi > Reported-by: Ramon Fried > Tested-By: Ramon Fried Acked-by: Sebastian Andrzej Siewior Sebastian