Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754163AbbL3WwA (ORCPT ); Wed, 30 Dec 2015 17:52:00 -0500 Received: from www.linutronix.de ([62.245.132.108]:45535 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbbL3Wv5 (ORCPT ); Wed, 30 Dec 2015 17:51:57 -0500 Date: Wed, 30 Dec 2015 23:50:40 +0100 (CET) From: Thomas Gleixner To: Jiang Liu cc: Joe Lawrence , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jeremiah Mahler , Borislav Petkov , andy.shevchenko@gmail.com, Guenter Roeck , linux-kernel@vger.kernel.org Subject: Re: [Bugfix v2 4/5] x86/irq: Fix a race condition between vector assigning and cleanup In-Reply-To: <1450880014-11741-4-git-send-email-jiang.liu@linux.intel.com> Message-ID: References: <1450880014-11741-1-git-send-email-jiang.liu@linux.intel.com> <1450880014-11741-4-git-send-email-jiang.liu@linux.intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 925 Lines: 27 On Wed, 23 Dec 2015, Jiang Liu wrote: > /* > - * Check if the irq migration is in progress. If so, we > - * haven't received the cleanup request yet for this irq. > + * Nothing to cleanup if this cpu is not set > + * in the old_domain mask. > */ > - if (data->move_in_progress) > - goto unlock; > - > - if (vector == data->cfg.vector && > - cpumask_test_cpu(me, data->domain)) Actually we cannot remove this check either. If the vector changed from 100 to 80, then we cleanup vector 80 which is the active vector and the old one remains stale. Not pretty, right? I'll send out a fine granular series tomorrow when my brain is more awake. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/