From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:59611 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbdLLOMo (ORCPT ); Tue, 12 Dec 2017 09:12:44 -0500 Date: Tue, 12 Dec 2017 15:12:43 +0100 From: Christoph Hellwig To: Ming Lei Cc: linux-nvme@lists.infradead.org, Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Bart Van Assche , Keith Busch , Sagi Grimberg , Yi Zhang , Johannes Thumshirn Subject: Re: [PATCH 4/6] blk-mq: avoid to map CPU into stale hw queue Message-ID: <20171212141243.GA7849@lst.de> References: <20171212110232.12495-1-ming.lei@redhat.com> <20171212110232.12495-5-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20171212110232.12495-5-ming.lei@redhat.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Tue, Dec 12, 2017 at 07:02:30PM +0800, Ming Lei wrote: > blk_mq_pci_map_queues() may not map one CPU into any hw queue, but its > previous map isn't cleared yet, and may point to one stale hw queue > index. > > This patch fixes the following issue by clearing the mapping table before > setting it up in blk_mq_pci_map_queues(). This needs to be done in the caller intead of the transport specific queue map helpers. From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Tue, 12 Dec 2017 15:12:43 +0100 Subject: [PATCH 4/6] blk-mq: avoid to map CPU into stale hw queue In-Reply-To: <20171212110232.12495-5-ming.lei@redhat.com> References: <20171212110232.12495-1-ming.lei@redhat.com> <20171212110232.12495-5-ming.lei@redhat.com> Message-ID: <20171212141243.GA7849@lst.de> On Tue, Dec 12, 2017@07:02:30PM +0800, Ming Lei wrote: > blk_mq_pci_map_queues() may not map one CPU into any hw queue, but its > previous map isn't cleared yet, and may point to one stale hw queue > index. > > This patch fixes the following issue by clearing the mapping table before > setting it up in blk_mq_pci_map_queues(). This needs to be done in the caller intead of the transport specific queue map helpers.