From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030333AbdEWJgT (ORCPT ); Tue, 23 May 2017 05:36:19 -0400 Received: from verein.lst.de ([213.95.11.211]:52970 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030301AbdEWJf5 (ORCPT ); Tue, 23 May 2017 05:35:57 -0400 Date: Tue, 23 May 2017 11:35:55 +0200 From: Christoph Hellwig To: Thomas Gleixner Cc: Christoph Hellwig , Jens Axboe , Keith Busch , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] genirq/affinity: assign vectors to all present CPUs Message-ID: <20170523093555.GA23632@lst.de> References: <20170519085756.29742-1-hch@lst.de> <20170519085756.29742-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 21, 2017 at 08:31:47PM +0200, Thomas Gleixner wrote: > On Fri, 19 May 2017, Christoph Hellwig wrote: > > - /* Stabilize the cpumasks */ > > - get_online_cpus(); > > How is that protected against physical CPU hotplug? Physical CPU hotplug > manipulates the present mask. It does indeed seem to. Documentation/core-api/cpu_hotplug.rst claims there are no locking rules for manipulations of cpu_present_mask, maybe it needs and update to mention get/put_online_cpus() ? Or maybe I should just switch to possible_cpu mask here like a lot of code seems to do to avoid the hot plug issues, but that might be a bit of a waste.