Received: by 10.213.65.16 with SMTP id m16csp244958imf; Mon, 12 Mar 2018 02:10:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELsHzgWSqKvkGNm6bd4U7y691hMNQYm6by5EmS3VjVzcN3SaL0QtuTYFOz/iKDAP5VkpcarW X-Received: by 10.98.100.69 with SMTP id y66mr7341015pfb.111.1520845845050; Mon, 12 Mar 2018 02:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520845845; cv=none; d=google.com; s=arc-20160816; b=cE7EdB/TCDe28VnBRF+LYz+uc8iFkLaVickZyREJeBr7XIb7SEWM6gALw4DHw8Ad1+ qUTF1aHGs+ms19DTeZ8VrqeiFQJnoD6tbD5RmncBopK3p6EY9Fe+IwIO19bkgxDN3hcG E7LwQBmFFe47I/KTiixSNMpe5avs17jcjMHmSNR50CJAO7vj8Vy8DG6ERYzoi3A97nQK BMND/HkFxMQGKm3ELDGYgetcCdgJ3YDep6QDwan26tXl59fYfB+/CeOq5LukSWP9E0m0 vDT8L4ouNeoIqtHjlPZTNK4diu8S28Yz4OKjO+yuqCXJ5UgDehh5j55CrCUVYKamW7MZ lEtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hrK11MnGuQs6OfSe3hGkpmmjQtCLJ4GZDpsq9kKZXZ4=; b=ia8RV5V+zi3jWg7+LpM4YA0xvGZPLhbssJBikue4GtTmi1v8FfaaPwh7GmiYjnesq0 2ctlgcDgaLKotH4Go6fdZHkBkFM9jaMHyFcg5+/L4aBe1HI+H18tylieYt/4C3Kp6Qdw G0rOgdPC9KuxTsizq7qGdkbHRuJ2Lfag5F/utwnhzQY50eud/73GjIcQQTl+4+peFWuw PHJmVA5iFABRIh01ctwzNL/IVYhxgEK4YapOuuGzFxW/ZOhCV/6BLFPo1bwzIytRTwgG /LBxJ0Cs22mXEVYf6y7aWwNepkPLRRhdGZDggpp4O1vU1xGQQrorN0Jhv2H2xPRruolK ggYA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si5485368pfn.113.2018.03.12.02.10.30; Mon, 12 Mar 2018 02:10:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751723AbeCLJJc (ORCPT + 99 others); Mon, 12 Mar 2018 05:09:32 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36304 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750811AbeCLJJa (ORCPT ); Mon, 12 Mar 2018 05:09:30 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3CD2B4023112; Mon, 12 Mar 2018 09:09:30 +0000 (UTC) Received: from ming.t460p (ovpn-12-49.pek2.redhat.com [10.72.12.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 80E2F10B0F33; Mon, 12 Mar 2018 09:09:17 +0000 (UTC) Date: Mon, 12 Mar 2018 17:09:13 +0800 From: Ming Lei To: Keith Busch Cc: Christoph Hellwig , sagi@grimberg.me, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, axboe@fb.com, Jianchao Wang , linux-block@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH V2] nvme-pci: assign separate irq vectors for adminq and ioq0 Message-ID: <20180312090827.GB23903@ming.t460p> References: <1519832921-13915-1-git-send-email-jianchao.w.wang@oracle.com> <20180228164726.GB16536@lst.de> <20180301150329.GB6795@ming.t460p> <20180301161042.GA14799@localhost.localdomain> <20180308074220.GC15748@lst.de> <20180309172445.GC14765@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180309172445.GC14765@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 12 Mar 2018 09:09:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 12 Mar 2018 09:09:30 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'ming.lei@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 09, 2018 at 10:24:45AM -0700, Keith Busch wrote: > On Thu, Mar 08, 2018 at 08:42:20AM +0100, Christoph Hellwig wrote: > > > > So I suspect we'll need to go with a patch like this, just with a way > > better changelog. > > I have to agree this is required for that use case. I'll run some > quick tests and propose an alternate changelog. > > Longer term, the current way we're including offline present cpus either > (a) has the driver allocate resources it can't use or (b) spreads the > ones it can use thinner than they need to be. Why don't we rerun the > irq spread under a hot cpu notifier for only online CPUs? 4b855ad371 ("blk-mq: Create hctx for each present CPU") removes handling mapping change via hot cpu notifier. Not only code is cleaned up, but also fixes very complicated queue dependency issue: - loop/dm-rq queue depends on underlying queue - for NVMe, IO queue depends on admin queue If freezing queue can be avoided in CPU notifier, it should be fine to do that, otherwise it need to be avoided. Thanks, Ming