From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549AbdFGWEP (ORCPT ); Wed, 7 Jun 2017 18:04:15 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:34179 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbdFGWEO (ORCPT ); Wed, 7 Jun 2017 18:04:14 -0400 Date: Wed, 7 Jun 2017 15:04:11 -0700 From: Omar Sandoval To: Christoph Hellwig Cc: Thomas Gleixner , Jens Axboe , Keith Busch , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/8] blk-mq: create hctx for each present CPU Message-ID: <20170607220411.GF7481@vader.DHCP.thefacebook.com> References: <20170603140403.27379-1-hch@lst.de> <20170603140403.27379-8-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170603140403.27379-8-hch@lst.de> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 03, 2017 at 04:04:02PM +0200, Christoph Hellwig wrote: > Currently we only create hctx for online CPUs, which can lead to a lot > of churn due to frequent soft offline / online operations. Instead > allocate one for each present CPU to avoid this and dramatically simplify > the code. > > Signed-off-by: Christoph Hellwig Oh man, this cleanup is great. Did you run blktests on this? block/008 does a bunch of hotplugging while I/O is running.