Received: by 10.213.65.68 with SMTP id h4csp449801imn; Tue, 13 Mar 2018 09:24:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELuTwQhBaY6qo+AkOxEjYYo12oNZvByIztHSe7yWoEO+G3Gb/oRoL9Tx5zUaRQMY8x9qy76O X-Received: by 2002:a17:902:5482:: with SMTP id e2-v6mr1103588pli.65.1520958287655; Tue, 13 Mar 2018 09:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958287; cv=none; d=google.com; s=arc-20160816; b=rp3DkPld/69YRGjnQlW1Hd9h6Ko7Ua4LHWzJJK9fT1hVScCJMGEYd3zfj5BmbMHvzU 5vFzjTwi6AEApmaC2EBc/oKMLIFUpfUtuGBrgsosra6jGH0AqB/BCKluzf8BAQqw/4pb KvoJq+K7i75+HZdpuaofo8W8kflzUc5fbv1ZmNxhBn2WIlUBtY1Uhi6XB5psMyKdafH1 c6RSnbwHwHuA5iZcyiJwqi9ZdwpYPwbR76uWD1FuWv5GMW74Fq2rO00YI++k0MxRC7gw QAmAbj/E8IdofTfsIQb6lvSOVJxJpUeXk5gFfxolqGMNEWcqrxtXB+2nb1sTqHxfIXvS OxGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=p01M4sfppkSKVWYjUEM7mNTB+K36Apelp32dbahHGpo=; b=fXGWp+2qQoOJoWCkeZeG7W7qCrr2iccHoiZMucbwjz9hB8PemhxtCjrzazEeLNKgr8 7sXXNtkF+DAjBVi2QdEIX+o4k+kXoCiiLb8LnKg4sjHFkOHF+pgH3uK6Ion8/YTMTIed +I55wqJyIXsNYhduQC22VGN6/lGaHSKL9DXY8SgwOmxipIhXuYYSNFXnhj7zwN1wTvXx bMe2qHwAArsnpwpUCl6f2VnIjBocTZPGV34W1mFKnXXoI/hC8ChoDMY9IZMfIC86/yGN lRPDsKVxV/Zw3wBXuvJndt2PW2Skqqm5ItjRPWjs5CkwakmojpEK/7O4iYwFeee0K9sE pulg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si255483pgs.685.2018.03.13.09.24.33; Tue, 13 Mar 2018 09:24:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933874AbeCMQXF (ORCPT + 99 others); Tue, 13 Mar 2018 12:23:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32804 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933758AbeCMPeY (ORCPT ); Tue, 13 Mar 2018 11:34:24 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4A64D1035; Tue, 13 Mar 2018 15:34:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , Hannes Reinecke , "Martin K. Petersen" Subject: [PATCH 4.15 127/146] scsi: qla2xxx: Skip IRQ affinity for Target QPairs Date: Tue, 13 Mar 2018 16:24:54 +0100 Message-Id: <20180313152329.981761635@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit d68b850e1bfb9afb24b888a946165a186a710195 upstream. Fix co-existence between Block MQ and Target Mode. Block MQ and initiator mode requires midlayer queue mapping to check for IRQ to be affinitized. For target mode, it's not the case. Fixes: 09620eeb62c41 ("scsi: qla2xxx: Add debug knob for user control workload") Cc: # 4.12+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_os.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -6609,9 +6609,14 @@ qla83xx_disable_laser(scsi_qla_host_t *v static int qla2xxx_map_queues(struct Scsi_Host *shost) { + int rc; scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata; - return blk_mq_pci_map_queues(&shost->tag_set, vha->hw->pdev); + if (USER_CTRL_IRQ(vha->hw)) + rc = blk_mq_map_queues(&shost->tag_set); + else + rc = blk_mq_pci_map_queues(&shost->tag_set, vha->hw->pdev); + return rc; } static const struct pci_error_handlers qla2xxx_err_handler = {