From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 27 Mar 2018 16:20:01 +0200 From: Christoph Hellwig To: Keith Busch Cc: Linux NVMe , Linux Block , Christoph Hellwig , Sagi Grimberg , Jianchao Wang , Ming Lei , Jens Axboe Subject: Re: [PATCH 3/3] nvme-pci: Separate IO and admin queue IRQ vectors Message-ID: <20180327142001.GC4724@lst.de> References: <20180323221923.24545-1-keith.busch@intel.com> <20180323221923.24545-3-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180323221923.24545-3-keith.busch@intel.com> List-ID: > +static inline unsigned int nvme_ioq_vector(struct nvme_dev *dev, > + unsigned int qid) No need for the inline here I think. > +{ > + /* > + * A queue's vector matches the queue identifier unless the controller > + * has only one vector available. > + */ > + return (dev->num_vecs == 1) ? 0 : qid; and no need for the braces here. > + struct irq_affinity affd = {.pre_vectors = 1}; struct irq_affinity affd = { .pre_vectors = 1 }; to make it a little more readable.