Received: by 10.213.65.68 with SMTP id h4csp443468imn; Tue, 13 Mar 2018 09:12:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELvKU+4l0KgPX4rQVVDwHbqhqvUn0ragU0EH0Oh4loOnDBXEp7sKXOLmdoegJ41ZXBX2a+GB X-Received: by 10.99.132.72 with SMTP id k69mr913874pgd.367.1520957555569; Tue, 13 Mar 2018 09:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957555; cv=none; d=google.com; s=arc-20160816; b=BpqZX5Z6CKPl4BwJ67OpLfdEpjgCtIzXBfV0zZBpXq0GbHl1vsXxXbC6AxJVDldKu6 uyOLZ+n7GIjjH3gVbeN21BwuGzTpH47zvJid680uOPG7oSKPKhYqOPBQO0mre11BGdze EkmJp4x0tz3sD2aFGk2H0fYNhlPgTp7/farArtEtgLgRAZPGNeWiQGrfMzcyjHV5gZiC PaAq362iJLccu2x2pNs6ItNSi13KesQBn0YSQdzXjIgXaS8GBo089oXblT55Lh9G2JPa ZvqN0xY36TaTn0a7kYSrox2f+rlgycxJCegc4qeDflZ7AhB/O5abnCMGjoAsQSPu4x68 yQFQ== 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=ssgE8BzjIyKwWAheXpn+PWqx5Ziaq/cQeNIE6s9IY5k=; b=vbBL692BZDyE0rZ749QEVX/XMAE1uqKhHUJzLpIUIVAJYHbneNC39gUgLx+ZcmpIj7 yVJoGIiW7NonKrGTON8GKtdH3aglSWLQg5RcLxh0UW2fgMoyL5IjeW2p37PPCZpWxpRX /WPWVsE3zxJCJy9XUB6pu6xOWW/tSoJtNlG6+DK52Xy8LIn7wrvuagdwE87z+ekNotLl 0Se0ejU+jZJmqtspH7mviUngzjX9+wKDJBTQ1JVjt7NGZICm1qr+2ObCEMpCBzQyCeDD Irr/rLi4uPlHvRORtzB0pMPS6xMwf2hVHcraCo19I4rvqNxdyMSUwxbIu7zWc6d38bfX TqbA== 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 e30si262441pgn.261.2018.03.13.09.12.21; Tue, 13 Mar 2018 09:12:35 -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 S934164AbeCMPgM (ORCPT + 99 others); Tue, 13 Mar 2018 11:36:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33416 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbeCMPgK (ORCPT ); Tue, 13 Mar 2018 11:36:10 -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 0A3AF1184; Tue, 13 Mar 2018 15:36:09 +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.14 027/140] scsi: qla2xxx: Skip IRQ affinity for Target QPairs Date: Tue, 13 Mar 2018 16:23:50 +0100 Message-Id: <20180313152459.847294951@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 @@ -6592,9 +6592,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 = {