From patchwork Thu Oct 15 03:27:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar M X-Patchwork-Id: 11838859 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 101A01580 for ; Thu, 15 Oct 2020 10:21:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DAD0522249 for ; Thu, 15 Oct 2020 10:21:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="cAEDL8nV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389233AbgJOKVg (ORCPT ); Thu, 15 Oct 2020 06:21:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389099AbgJOKVg (ORCPT ); Thu, 15 Oct 2020 06:21:36 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 371E5C061755 for ; Thu, 15 Oct 2020 03:21:36 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id n9so1617267pgt.8 for ; Thu, 15 Oct 2020 03:21:36 -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=kT40iJa9Wr0fT3Ln4M6QZw3w/Zd1czMGvTOm94bl6xE=; b=cAEDL8nVgKPylcZiPe+p7y0c3auMaBvuHsCFXkI7aDusceWeeVIWxOa9S7kXzsPKWz 46ZyLiJaz7bVkVENiITvSq6wFo1zWw6hIRT50XXsc5iHamZ9dNXymbgIFIMkBAT8tAd1 bAw0snq8tYU3CzE6sqrsa4Eut87FLo/ATAalY= 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=kT40iJa9Wr0fT3Ln4M6QZw3w/Zd1czMGvTOm94bl6xE=; b=s4m8f8M15fVEbn4cUssZJkbugFRjTwsj5LS9GysxB3g/BXvJJPiM2vBqkijvP7SSCr TWsfQ+Qq9nVpF171bLxOb/T5RmdOtoFIrBCaAhThx51rVQcxjkrDAxwHxqY89xeTdeJC wU+Yi2JLuO1aVR7Eribk7Em3rCLBAbwdIfRFk7z5Cb+F7Ob9bj1GJ8V3zVF8dEYdOgHF c7MRx05JX9MfdRoaAFMD7+rUm4pjCNC5Dgf9NXLNACYOLDm4ACF1FqaAH5M8GZ4V4q/k TSdpDHtCH6IrpE+noF6hHLfAtQvr+R2zAuIMQMqDTcFf1CWW+HVpRqbNf3jt3qoq1dw3 eJVQ== X-Gm-Message-State: AOAM532kVnsWbKpswkoRukkPEskFM/o09Dy77jdEdQsehWsakKFybVXu k8g2t23zAoMj4j7/66aZQ98uIIWVd8aqVHVtoGkm8XiyXoHryjusYRLImma4ay2DEzZsaKndif3 ObfmEocFpzaxs14Tqu6nk1HDwLsou4yw2BZzV2SYETETguW0yl1WA0pbB2WxZjOd+5eKzEinlMU 7UPNV/EDPvbiM= X-Google-Smtp-Source: ABdhPJycAiaXz5ErVxWyR6LJJizKs0i6RvulAMdc0OZwlMctGORZpF6DKzG3HNxtlYeMuAbkOjipQQ== X-Received: by 2002:a63:3e06:: with SMTP id l6mr2745285pga.179.1602757295375; Thu, 15 Oct 2020 03:21:35 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 194sm2802258pfz.182.2020.10.15.03.21.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2020 03:21:34 -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 10/17] scsi:libfc: Added changes to fc_remote_port_chkready Date: Thu, 15 Oct 2020 08:57:35 +0530 Message-Id: <1602732462-10443-11-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/scsi/libfc/fc_fcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c index e11d4f002bd4..5b7a85dbc6c1 100644 --- a/drivers/scsi/libfc/fc_fcp.c +++ b/drivers/scsi/libfc/fc_fcp.c @@ -1867,7 +1867,7 @@ int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) int rc = 0; struct fc_stats *stats; - rval = fc_remote_port_chkready(rport); + rval = fc_remote_port_chkready(rport, sc_cmd); if (rval) { sc_cmd->result = rval; sc_cmd->scsi_done(sc_cmd); @@ -2239,7 +2239,7 @@ int fc_slave_alloc(struct scsi_device *sdev) { struct fc_rport *rport = starget_to_rport(scsi_target(sdev)); - if (!rport || fc_remote_port_chkready(rport)) + if (!rport || fc_remote_port_chkready(rport, NULL)) return -ENXIO; scsi_change_queue_depth(sdev, FC_FCP_DFLT_QUEUE_DEPTH);