Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5145562ybn; Sat, 28 Sep 2019 14:26:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLNefP1ZK0XcOwLXwxWexv1uzeBlVIsfikYnbXAc2f14eD9KjTwu3MGazZH1gasYojwfky X-Received: by 2002:a50:9b58:: with SMTP id a24mr11947241edj.29.1569705997727; Sat, 28 Sep 2019 14:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569705997; cv=none; d=google.com; s=arc-20160816; b=p3yK+j5fdLb9QQLrQx8n5OcQR4/ZsfCo1lEkpMMqXirwcP7vs9myfnLkQv12YjksyJ hdp/7hjImb5zxarQ0TIxJKBrguChy53upCaJvsXpRJFXUfXAdmJW2ryD6t3/7665M3BU O4hFdp0mbSi5TD3OVSsGKYppA9x6o1nXs6Iw6prUKaTCo9eg/tub7Q9oYauNQh06bVom 8CAtPmL4PsGwlvNNKINR2uqHNmxYCu0/tL7K4OPODgE6/8aL4pLuSCZ0RMYyVUB7iM/y /Aj7U9Qiuss8d1mtLMPM6BHKdbaNmAyK16uY9+Vd6/rZgIsSZmtwkqtRfcCzydtJ0AnB eFbg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lNokKX8t2rFJ6fUX7cNwrJQzGniamG8idh40dIWlzDw=; b=UgoW82KrBn0HnQDdArRYLIdnFZvDd1NAophh9niBc4CcyV8soWIVubW2OQfocCHCVT H8zAOD5vYKUjFt8ZpRNWG6ZsDvN2toH0lcNVtx23bWuYUJ2+YKapEH5CKRjJP4Rw/zg9 QaCFO3D8BC7TxveXp/IisQI2PJF0eSnpqjWhpIzaYqofz4dAh39ZXw3qLVDkobJNM+YD 0O4HgiO1KXM8OEB+5eIQQnTayIt5GL7XciKrG2mlh3MnGM9L0Ze70ls8UOiPg6S7cSSd 6jf2wM++83UbjwICVEVUOTheMj1cbORXaKcox7IXrRbFiMo1QhHs+ybtu6L57Gv89bbp yMiA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si4702103ejb.16.2019.09.28.14.26.13; Sat, 28 Sep 2019 14:26:37 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728813AbfI1VZK (ORCPT + 99 others); Sat, 28 Sep 2019 17:25:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:42796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbfI1VZK (ORCPT ); Sat, 28 Sep 2019 17:25:10 -0400 Received: from oasis.local.home (unknown [12.174.139.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 425982082F; Sat, 28 Sep 2019 21:25:09 +0000 (UTC) Date: Sat, 28 Sep 2019 17:25:07 -0400 From: Steven Rostedt To: Ivan Safonov Cc: linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , Thomas Gleixner , linux-rt-users@vger.kernel.org Subject: Re: [PATCH] genirq: replace notify with old_notify in irq_set_affinity_notifier() Message-ID: <20190928172507.6698545f@oasis.local.home> In-Reply-To: <20190928151921.29268-1-insafonov@gmail.com> References: <20190928151921.29268-1-insafonov@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Sep 2019 18:19:20 +0300 Ivan Safonov wrote: > This patch is for Linux 4.19 with a RT patch. > > The second 'if' block does not check notify for NULL, > this leads to a system crash. > > Most likely, there is a typo here. > > With old_notify system works as expected. > > Signed-off-by: Ivan Safonov > --- > kernel/irq/manage.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index 290cd520dba1..79a7072dfb3c 100644 > --- a/kernel/irq/manage.c > +++ b/kernel/irq/manage.c > @@ -412,7 +412,7 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify) > > if (old_notify) { > #ifdef CONFIG_PREEMPT_RT_BASE > - kthread_cancel_work_sync(¬ify->work); > + kthread_cancel_work_sync(&old_notify->work); Thanks for the patch, but I currently have an RFC out that rewrites all this code. I'm hoping to apply the RFC patch next week. -- Steve > #else > cancel_work_sync(&old_notify->work); > #endif