Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2703269ybx; Fri, 8 Nov 2019 08:10:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxKx0RIyQcO+ASNWjSBrM9lqhRrmJnAdEqQpGi7SBgn3NFe8gZMKIdteXetRxB+hE9pjFch X-Received: by 2002:aa7:c719:: with SMTP id i25mr11010780edq.224.1573229438036; Fri, 08 Nov 2019 08:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573229438; cv=none; d=google.com; s=arc-20160816; b=BZeNnFcqUV8F7cdZpLFhL1cavVbniwaE0WssskqFv55Couo4to5+5BRkh15y2xACir NlNCH5tfHFtaNuGbvOmOYRmPGHsCCmvXsegl6TF48QLbA/MOKUNxhzLD9Imh4XQ+waUl swNV+l2MGlBKc5MPbq8RjMkrvReeUQGcyX6uBG9++hN2/kstOp0qLGDGwgVX9h6ATH3e niC7T6Dojv6+fHHB+9ZXDAwrB5xUU4Y1ZLEkvbb1iUF4pLmD4TLF6zFueYifzMVN0JZd K0G59B2fIysjDpnY0yXvPd+Qg9OU4K52+Z1qyeCxvgP8sAWTiQhdJBywdICMTYvGXzNo 0kew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ryljwadBpUPmKcar/IG7h4Q1LYePD1RtFgFKGfgQDeM=; b=k5RxkoTsFpKPkkfeRJKYFuE+cHCOr2PIRSLubkwKDgd6sPzoKxorUau5dWZU8fvcmU PKBhO8ltBbogoKqieHNIPGRDk6pcIDJUE0BZUOEg+Pq8AiR6t6uknxm3igTqbJZO+0Nv vv02g5bWptjXn+/uoDDlr95XVn+0RZi+YEYRGZkEQoHh3SnLv3+fshI1ttOt2cRrSyK7 AT+E7ePsHrRy5I59HFMoKEWxK7OUxKk0YsgaCmrLqCKmdU8G5t7q68ndohIJBwqEeAi/ 43TvucKAM0j2crJGA3Q4IjeNotKMzW9v6qsDT8mqqhr8+B5isYiPntJKvbbCYeIRCjQq 7hKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IwfTLvOp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jx16si4077755ejb.353.2019.11.08.08.10.14; Fri, 08 Nov 2019 08:10:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IwfTLvOp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727768AbfKHQJX (ORCPT + 99 others); Fri, 8 Nov 2019 11:09:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:55114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfKHQJW (ORCPT ); Fri, 8 Nov 2019 11:09:22 -0500 Received: from lenoir.home (lfbn-ncy-1-150-155.w83-194.abo.wanadoo.fr [83.194.232.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D1DEB21D7E; Fri, 8 Nov 2019 16:09:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573229362; bh=Xx/dOL0IB3Zn0i/XEIYpwQcyG2ipCwckQcaDSe8MyEQ=; h=From:To:Cc:Subject:Date:From; b=IwfTLvOpmNe65vZ9/1Lw90eIhJ2W6SDEutPlEUDvqdziTPyMaAxJty/Aj1pKSl7Eo NMRDuFi+GKDZ1mlsBkhu3Riy9DUYZp16x5B/CLRDlnV1+wcVg2J4Ip7xi7FwmVF0WW Hf5XZ5bQnX0cGZDR/03qCcpjqOx940zQy0cRRJPc= From: Frederic Weisbecker To: Peter Zijlstra , Ingo Molnar Cc: LKML , Frederic Weisbecker , "Paul E . McKenney" , Thomas Gleixner Subject: [PATCH 0/4] irq_work: Fix ordering issue Date: Fri, 8 Nov 2019 17:08:54 +0100 Message-Id: <20191108160858.31665-1-frederic@kernel.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patches 1 and 2 are the fix part, 3 is a cleanup, 4 is extra-optimization (rfc). Thanks to Paul that confirmed my doubts about ordering on cmpxchg() failure. Frederic Weisbecker (4): irq_work: Convert flags to atomic_t irq_work: Fix irq_work_claim() ordering irq_work: Slightly simplify IRQ_WORK_PENDING clearing irq_work: Weaken ordering in irq_work_run_list() include/linux/irq_work.h | 10 +++++++--- kernel/irq_work.c | 35 ++++++++++++++--------------------- kernel/printk/printk.c | 2 +- 3 files changed, 22 insertions(+), 25 deletions(-) -- 2.23.0