From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com ([134.134.136.31]:10277 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeCNPHn (ORCPT ); Wed, 14 Mar 2018 11:07:43 -0400 Message-ID: <1521040056.20980.229.camel@gmail.com> Subject: Re: [PATCH V5 2/5] scsi: megaraid_sas: fix selection of reply queue From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Ming Lei , James Bottomley , Jens Axboe , "Martin K . Petersen" Cc: Christoph Hellwig , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Meelis Roos , Don Brace , Kashyap Desai , Laurence Oberman , Mike Snitzer , Paolo Bonzini , Hannes Reinecke Date: Wed, 14 Mar 2018 17:07:36 +0200 In-Reply-To: <20180313094243.8710-3-ming.lei@redhat.com> References: <20180313094243.8710-1-ming.lei@redhat.com> <20180313094243.8710-3-ming.lei@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Tue, 2018-03-13 at 17:42 +0800, Ming Lei wrote: > From 84676c1f21 (genirq/affinity: assign vectors to all possible CPUs), > one msix vector can be created without any online CPU mapped, then > command may be queued, and won't be notified after its completion. > > This patch setups mapping between cpu and reply queue according to irq > affinity info retrived by pci_irq_get_affinity(), and uses this info > to choose reply queue for queuing one command. > > Then the chosen reply queue has to be active, and fixes IO hang caused > by using inactive reply queue which doesn't have any online CPU mapped. > > Cc: Hannes Reinecke > Cc: "Martin K. Petersen" , > Cc: James Bottomley , > Cc: Christoph Hellwig , > Cc: Don Brace > Cc: Kashyap Desai > Cc: Laurence Oberman > Cc: Mike Snitzer > Cc: Meelis Roos > Cc: Artem Bityutskiy > Fixes: 84676c1f21e8 ("genirq/affinity: assign vectors to all possible CPUs") > Signed-off-by: Ming Lei Checked v5 my Skylake Xeon and with this patch the regression that I reported is fixed. Tested-by: Artem Bityutskiy Link: https://lkml.kernel.org/r/1519311270.2535.53.camel@intel.com