Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbbEDMKR (ORCPT ); Mon, 4 May 2015 08:10:17 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:34308 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbbEDMKM (ORCPT ); Mon, 4 May 2015 08:10:12 -0400 MIME-Version: 1.0 In-Reply-To: <1430709339-29083-8-git-send-email-jiang.liu@linux.intel.com> References: <1430709339-29083-1-git-send-email-jiang.liu@linux.intel.com> <1430709339-29083-8-git-send-email-jiang.liu@linux.intel.com> Date: Mon, 4 May 2015 15:10:10 +0300 X-Google-Sender-Auth: AneIunUpiXV6tkuP9s9gBPU4b6U Message-ID: Subject: Re: [RFC v1 07/11] net/mlx4: Cache irq_desc->affinity instead of irq_desc From: Amir Vadai To: Jiang Liu Cc: Thomas Gleixner , Bjorn Helgaas , Benjamin Herrenschmidt , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Randy Dunlap , Yinghai Lu , Borislav Petkov , Amir Vadai , Ido Shamay , "David S. Miller" , Or Gerlitz , Eric Dumazet , Hadar Hen Zion , Eran Ben Elisha , Joe Perches , Saeed Mahameed , Matan Barak , Konrad Rzeszutek Wilk , Tony Luck , x86@kernel.org, "linux-kernel@vger.kernel.org" , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, netdev Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 23 On Mon, May 4, 2015 at 6:15 AM, Jiang Liu wrote: > The field 'affinity' in irq_desc won't change once the irq_desc data > structure is created. So cache irq_desc->affinity instead of irq_desc. > This also helps to hide struct irq_desc from device drivers. Hi Jiang, I might not understand the new changes irq core, but up until now affinity was changed when the user changed it through /proc/irq//smp_affinity. This code is monitoring the affinity from the napi_poll context to detect affinity changes, and prevent napi from keep running on the wrong CPU. Therefore, the affinity can't be cached at the beginning. Please revert this caching. Thanks, Amir -- 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/