Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5894559ybx; Mon, 11 Nov 2019 00:02:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxi1cDnXAg+49KpZ30mXu/vpv3I4v9MW3GkWT/Mz3Zc9p275nDVcGskh4+vKMKWeBMRYA7k X-Received: by 2002:a50:f284:: with SMTP id f4mr24677355edm.126.1573459362915; Mon, 11 Nov 2019 00:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573459362; cv=none; d=google.com; s=arc-20160816; b=Fj1Ce4sEiS2r/uJscq999JnxoJV6aJVZ3gyC4UhheyFGXrNl+rax3HP3sv2GPpKR73 rVaq3dEZkZBWWL4eaRtlheQYe4Ymglu4hAWMeh3RsGh5CeD6ZWO4WUW7L4HwfVkZJJ0A cJnBiq+wL9JTSctmJjJJsCU+9JalQqsNfx2K2yfriEU5iRsW2nQ1Ofby6UEw7pDmeBHU i+24ogc6NvFmZAa7RjRwmXimu2O/Mh4t0lzy7KwKQoQeRRm6WZVTpIGpIHi6+Xm32rNO RC/DEouyhMwaYO7QDg3c/rEd/jbF9jFVRyd+eZZlZCne736HV6E2wl4GBUd3DbRhtjnO HFkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1vVEP+E+m7Y4fysVNc+xD7OhAeGoFKJwI55qJ8eWGgw=; b=D2mCTcMYMjrjo1vtjVsOLZ+QXVGY/eLsrQ0kvRfWCKTEY77EpvBJq2io8LR2U5HwWi ND1evrP5cC9Tyr3w5L144kTMKygR46N7oK4L3QvZt6D6zyj6UGllwyequnhJ7bcnToRw FL3UFlyZQ2fhsJJ5YFRZRI5A6H/1JR4Dn/lzxPMO2N1D8Z5A567Wxpk0I58ai9Nqq2MY +j27dHsWMXVlSog5361AuGQRtAKjqAbnUIXpW66S5OFJ9RqVJPXyKshyDvvy3EyyXQP9 sXI46iugd6YekQGbNyyjmaydcGSuLj1VzLJuDjtqePf+DJWZfFFZwCmAdtvwRtsGo091 Gl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BbOZeR3s; 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=fail (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 cw1si8799952ejb.117.2019.11.11.00.02.19; Mon, 11 Nov 2019 00:02:42 -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=fail header.i=@gmail.com header.s=20161025 header.b=BbOZeR3s; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfKKIBD (ORCPT + 99 others); Mon, 11 Nov 2019 03:01:03 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39607 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfKKIBD (ORCPT ); Mon, 11 Nov 2019 03:01:03 -0500 Received: by mail-wr1-f66.google.com with SMTP id l7so1905125wrp.6 for ; Mon, 11 Nov 2019 00:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1vVEP+E+m7Y4fysVNc+xD7OhAeGoFKJwI55qJ8eWGgw=; b=BbOZeR3s5S6o8RGm4Ouom/edrSVpuFZVsuPcPWPWpg+Ftx8qws7Uu2nqBoIVG77xpS 6xSGOmYfceIpiIU0F3otVjmIizQrY3LCJ52hxEup+doof6od4LdiB+77sK4StqTr+fPt FDCqeyWpjkFZnGP+1ygcBpx2yLucKJhaw59X/g3YMurHSZ8CAJ4+7BM3+L9NhPtP8xkX lbVaLGMiqzrvJmbDbCJOmh0m7m96S0qbBxBKm8GrkrHDCj3RCP2NWs12MCi7+d6r6RJm vrB+m2bos5cCMX0886czI1cP9QSojl8emdKpsGezuY2g0o0sJE0AZS9pBiPrroP51B6Y uaYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=1vVEP+E+m7Y4fysVNc+xD7OhAeGoFKJwI55qJ8eWGgw=; b=R8Pt+bTX76LChhkK8xvxdtRZgOI4QqLl8Yqo6h8IFV7idNIb6yyqYTC6mR9DtDZYeU YOpT+G4To3NU9n2bKC3VUd5fMl4R9kILsLzlrlQltOwyrWklYB/URbmeRVRB5XjnKDP9 1ENRpWoiDvA2WUnLzc/RugZnaQJLUm9/dyVIw+adyNZyK9dUIElsSSppntKxHwX09Qvs Wy8TKy0ryjoclz+BqZLe7fDIGfDPywPo1EQk1v/7jZ5Xjgwyjob2CQmMUIvkrBhpJNGG hdwNp3W8eUPebtHG2VjMGo+k/knMMu+JXtQ9GfHYkvqdPLeDXbC7f3XuNR0NDzDTqvYs J3lg== X-Gm-Message-State: APjAAAXBfe+g8teYNjHLx5zRaMbuHQfqhAoOhmeztTKm9nhOrZURq/cq 7Bx48HUbl8S5Ov55JY5HwNY8LGE2 X-Received: by 2002:adf:f303:: with SMTP id i3mr6254352wro.157.1573459261173; Mon, 11 Nov 2019 00:01:01 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id 189sm19072780wmc.7.2019.11.11.00.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 00:01:00 -0800 (PST) Date: Mon, 11 Nov 2019 09:00:58 +0100 From: Ingo Molnar To: Frederic Weisbecker Cc: Peter Zijlstra , LKML , "Paul E . McKenney" , Thomas Gleixner Subject: Re: [PATCH 1/4] irq_work: Convert flags to atomic_t Message-ID: <20191111080058.GA72562@gmail.com> References: <20191108160858.31665-1-frederic@kernel.org> <20191108160858.31665-2-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191108160858.31665-2-frederic@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Frederic Weisbecker wrote: > We need to convert flags to atomic_t in order to later fix an ordering > issue on cmpxchg() failure. This will allow us to use atomic_fetch_or(). > Also that clarify the nature of those flags. > > Signed-off-by: Frederic Weisbecker > Cc: Paul E. McKenney > Cc: Thomas Gleixner > Cc: Peter Zijlstra > Cc: Ingo Molnar > --- > include/linux/irq_work.h | 10 +++++++--- > kernel/irq_work.c | 18 +++++++++--------- > kernel/printk/printk.c | 2 +- > 3 files changed, 17 insertions(+), 13 deletions(-) You missed the irq_work use in kernel/bpf/stackmap.c - see the fix below. Thanks, Ingo ===> kernel/bpf/stackmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/stackmap.c b/kernel/bpf/stackmap.c index dcfe2d37ad15..23cf27ce0491 100644 --- a/kernel/bpf/stackmap.c +++ b/kernel/bpf/stackmap.c @@ -289,7 +289,7 @@ static void stack_map_get_build_id_offset(struct bpf_stack_build_id *id_offs, if (in_nmi()) { work = this_cpu_ptr(&up_read_work); - if (work->irq_work.flags & IRQ_WORK_BUSY) + if (atomic_read(&work->irq_work.flags) & IRQ_WORK_BUSY) /* cannot queue more up_read, fallback */ irq_work_busy = true; }