From patchwork Thu Oct 15 03:27:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar X-Patchwork-Id: 269781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, T_TVD_MIME_NO_HEADERS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 570A6C433DF for ; Thu, 15 Oct 2020 10:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E975522249 for ; Thu, 15 Oct 2020 10:21:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="I4Cf3uDj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389261AbgJOKV5 (ORCPT ); Thu, 15 Oct 2020 06:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389258AbgJOKV5 (ORCPT ); Thu, 15 Oct 2020 06:21:57 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14916C061755 for ; Thu, 15 Oct 2020 03:21:57 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id n9so1617771pgt.8 for ; Thu, 15 Oct 2020 03:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7QFVfyHO4AIyGbvZ7y0VU0rKvXYixIV0W1gR8F9fOrU=; b=I4Cf3uDjIDBii45GFub9btzd+CQr/fd2tTofzmuTNLQ/uOLP9ZkScGCD0xvQnEtS2w K/jcFuKwopkJvw1y0Odtn4y/DaV0Qw9euBKjqpzXStzYsWLqqJ8agLl1DPGJ+3iiAYBJ UhZPC4ttD/ExTGiLxp5DbAMpyDOj+SpB7Wb2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7QFVfyHO4AIyGbvZ7y0VU0rKvXYixIV0W1gR8F9fOrU=; b=ulPi3Av6KtV3921M/C9CWreIjxfE42B6K+4EQjNKdjMU0QB6VRF5mXL1Q9zfvZAdwG lD6gf5x/LSYyp3WSJpWLa+2Myr3wxt+8RV8IAiPBkrOjyK/m9C+8BGCS77NMfHbMWaND kPJ81Xvt+sGjz7bddXDSI1054ddZWJlBl8y6Om4aT5rgcZaComC+RmNP6dohmgNB5d45 nFldDJZtO2iOZMgy8XwJUKy4yvO530zl9OJRj6+0Ue3KYGP67NMunkJIMRf+KfPlpCyl oGmV0iYxE5eoLNgp7dFT5Jog6+UL34LFke3JhcUJT9ctym0dcpKstCGUbtWw3GmNWax3 sArA== X-Gm-Message-State: AOAM53095lEKcvcoi2ZPvr73wDk5nQWRY+ALpn+/c0UlQrkLpDs1tXiF RIRZoWN4reCINnfTbykBArwHKS2uARw5kENTch7V0z/p3p/Ll5bcXHJ9AYKZAMdxEr9/XylYw6g tZ6HesKRwNrprkmvjOoxydytOp+dAs3wHP7VUATHQ7XdodGEdE45hW6wUEmjsFhQSSsMa02cl7U ymeN65bRdMnHQ= X-Google-Smtp-Source: ABdhPJx3aGiJGiE6gvfvxHXA9fcAVe8gFmeUhpTme0ntZ9V0LTiIDjh6n8E+QaDvGPdeipOOx7E+4w== X-Received: by 2002:aa7:875a:0:b029:155:7c08:f2ed with SMTP id g26-20020aa7875a0000b02901557c08f2edmr3663691pfo.52.1602757316208; Thu, 15 Oct 2020 03:21:56 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 194sm2802258pfz.182.2020.10.15.03.21.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2020 03:21:55 -0700 (PDT) From: Muneendra To: linux-scsi@vger.kernel.org, hare@suse.de Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, Muneendra Subject: [PATCH v3 17/17] scsi:mpt: Added changes to fc_remote_port_chkready Date: Thu, 15 Oct 2020 08:57:42 +0530 Message-Id: <1602732462-10443-18-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602732462-10443-1-git-send-email-muneendra.kumar@broadcom.com> References: <1602732462-10443-1-git-send-email-muneendra.kumar@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Added changes to pass a new argument to fc_remote_port_chkready Signed-off-by: Muneendra --- v3: New Patch --- drivers/message/fusion/mptfc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index f92b0433f599..e6f7fa891455 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c @@ -199,7 +199,7 @@ mptfc_block_error_handler(struct scsi_cmnd *SCpnt, hd = shost_priv(SCpnt->device->host); ioc = hd->ioc; spin_lock_irqsave(shost->host_lock, flags); - while ((ready = fc_remote_port_chkready(rport) >> 16) == DID_IMM_RETRY + while ((ready = fc_remote_port_chkready(rport, SCpnt) >> 16) == DID_IMM_RETRY || (loops > 0 && ioc->active == 0)) { spin_unlock_irqrestore(shost->host_lock, flags); dfcprintk (ioc, printk(MYIOC_s_DEBUG_FMT @@ -606,7 +606,7 @@ mptfc_slave_alloc(struct scsi_device *sdev) starget = scsi_target(sdev); rport = starget_to_rport(starget); - if (!rport || fc_remote_port_chkready(rport)) + if (!rport || fc_remote_port_chkready(rport, NULL)) return -ENXIO; hd = shost_priv(sdev->host); @@ -653,7 +653,7 @@ mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) return 0; } - err = fc_remote_port_chkready(rport); + err = fc_remote_port_chkready(rport, SCpnt); if (unlikely(err)) { SCpnt->result = err; SCpnt->scsi_done(SCpnt);