Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5000703imd; Tue, 30 Oct 2018 10:25:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5fNwH5tQGxC/ShGfX2PHrZCuUVAo5lOFUbYKtHEfMmuk3NTf+0JoEnomD6mikvswAOC0u5B X-Received: by 2002:a63:7541:: with SMTP id f1-v6mr2437643pgn.231.1540920356081; Tue, 30 Oct 2018 10:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540920356; cv=none; d=google.com; s=arc-20160816; b=H3JlFjLZJ2ZSaSBkCo+DyDU83v3e5myPJrgYMq1NSwG2LstZXIoaf4JT4d1UFQsCTg 2/TylKvDk+54RItV7MdxLWiCIAMPTIyzHGo9xEHIyhlbK2niYHnuoLyIYQRkFeHUcZvz gOTPCuMaGMhW/j9rO9Vvr9SuNNW5KkhHAFcgBH4PGTQ/alUlRA1ypNNDFpDyJgUk+ZIe k9OtNg4JPhHiO7hm0QFbelaf4t1LN/O8m2ytqIaMNXZ9TxCwbOc55gX+Rg2FgDklDqEt oBbj9Tn+8eQkrcZPzhgIHBwhAUgz/qrxw/NsAeBTeRnweT7AGSb0MYAOLyyNX1LmL3RI aNOg== 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; bh=ps5BJkJJ9x+xf7bkujJjG9QaTcRjrUpJWbVHH1/cGYY=; b=rcThwmZD+o4XDkV9spXLfTvROqNfHEUkwEPBwwh+kNHt0GJHEVxhFhgmyyr5f9QOxp 2pTdl8fhgJgegJvatjZ45LLXXTxH0XNvkIgWKAo21whvd01+Mj3VosMTVuBJY5sAFKCE EHeyldLmuDY7RHfvSqusIfFDFHsketmqZg1pp2AThKgC0A4J1Vo10DtHrK4/hAPa9hqk 58tZK4gLZM9pLFetioG0pZ4Tol8R7C/6/dybaWwWYAYo/GeBTk4XUbAnAZab1vD9WKZW /hTkeu2gKHOJyT43btJ6G5y6jXXPejsHdYPmf4+dOgRQVrt7Z2G2XBgSw1o+mHsq7nFJ oGXQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si24855092pgo.220.2018.10.30.10.25.38; Tue, 30 Oct 2018 10:25:56 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727865AbeJaCTR (ORCPT + 99 others); Tue, 30 Oct 2018 22:19:17 -0400 Received: from mga12.intel.com ([192.55.52.136]:33904 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeJaCTR (ORCPT ); Tue, 30 Oct 2018 22:19:17 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 10:24:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,445,1534834800"; d="scan'208";a="275745678" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga005.fm.intel.com with ESMTP; 30 Oct 2018 10:24:55 -0700 Date: Tue, 30 Oct 2018 11:22:34 -0600 From: Keith Busch To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH 11/14] irq: add support for allocating (and affinitizing) sets of IRQs Message-ID: <20181030172234.GF18906@localhost.localdomain> References: <20181029163738.10172-12-axboe@kernel.dk> <20181030142601.GA18906@localhost.localdomain> <20181030144527.GB18906@localhost.localdomain> <46dbcbcd-799f-9970-a68f-de7e96b1a6bb@kernel.dk> <20181030150840.GC18906@localhost.localdomain> <20181030160242.GD18906@localhost.localdomain> <27c1017a-9560-80cb-038d-f64727a162c3@kernel.dk> <535480f3-9087-b4ae-e7c8-cfe3c2d1e2c9@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <535480f3-9087-b4ae-e7c8-cfe3c2d1e2c9@kernel.dk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 30, 2018 at 11:09:04AM -0600, Jens Axboe wrote: > Pretty trivial, below. This also keeps the queue mapping calculations > more clean, as we don't have to do one after we're done allocating > IRQs. Yep, this addresses my concern. It less efficient than PCI since PCI can usually jump straight to a valid vector count in a single iteration where this only subtracts by 1. I really can't be bothered to care for optimizing that, so this works for me! :)