From patchwork Thu Oct 15 03:27:39 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: 11838867 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 46BBE1744 for ; Thu, 15 Oct 2020 10:21:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1DDAB22249 for ; Thu, 15 Oct 2020 10:21:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="HyYdyKae" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389252AbgJOKVs (ORCPT ); Thu, 15 Oct 2020 06:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389099AbgJOKVs (ORCPT ); Thu, 15 Oct 2020 06:21:48 -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 66DDDC061755 for ; Thu, 15 Oct 2020 03:21:48 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id y14so1604797pgf.12 for ; Thu, 15 Oct 2020 03:21:48 -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=w4bhq/xMyxoG1rkdg2X4dHBzp4hLg7UaymYWxaYLxzc=; b=HyYdyKaeOZrwEk4K+7lIRCQ/3Od5okohbz9E7FfbzGL1JBPaF3xo9xQUGI/YBt499u 5XVy8CxVV+5pWoNYQh2tO87QHbAgxO8Gafhlf8KO711pGTH7SEYdWOW3q+8a9A73pj4k fW9LuRZORoi8Hx9ry5qGlcFLlSZAm6DJvvUjI= 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=w4bhq/xMyxoG1rkdg2X4dHBzp4hLg7UaymYWxaYLxzc=; b=oZSqpyhNBE0YoXqxZXts36gCGuQliOMt4y5TjDvFbs5ZSsAiwBKcIf51HA7tV75vB+ frN8PmzW3bx0M/QZBLYrj4pnR9tkmJPBnnJeJt0osoiEeZrYQbv2mbaa0dxvYKA1eD6X Jru+p2fz3SDQJml72MErE/Av9Fw2aRIcNjfzV9FzW/SaaNvit6f2I6o7kzmnyil9poce NlHhSlmGBO/oMeX8g9MLWTBQyg3lEBoaw7ZVrvd1b98pQu9D2/P8tsBC4xt/W7e5V3IT 2uvHTTWdST6Ydxu3+yHSqcIbVsp9gEV0+WjFWs1iGmbpO7XYmYacbXHCtB3oP8jTXBKV 1pdA== X-Gm-Message-State: AOAM531AHrqhGwRdErn7P+k+2PNgsGeWY/LYqo/KaS7IyixtBpf4g+Pp hGJ0xXHpiIUW4kXZvMh6N52LIXCYvWoTK3kDU4ms1SrsYS/7PXuea7pwjmU+1SeNY/NkvVxLPYn D7FUUNaLCQZCeMs87Ld9A90yX/vYlMj3/qjUWZTVOxNxBv82lonLs509SWtSc+RCUdR6c9ZgCC/ Fi6ufzIAbVggQ= X-Google-Smtp-Source: ABdhPJxr8xYokhj9LMo+GKDAmh2M5257Azs0dNkFCPvyWQPTDi/hN9APp0M5Owy8s5Rio8Prxr7S2Q== X-Received: by 2002:a63:470a:: with SMTP id u10mr2878688pga.48.1602757307456; Thu, 15 Oct 2020 03:21:47 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 194sm2802258pfz.182.2020.10.15.03.21.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2020 03:21:46 -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 14/17] scsi:csio: Added changes to fc_remote_port_chkready Date: Thu, 15 Oct 2020 08:57:39 +0530 Message-Id: <1602732462-10443-15-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/csiostor/csio_scsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c index 55e74da2f3cb..2df093b49808 100644 --- a/drivers/scsi/csiostor/csio_scsi.c +++ b/drivers/scsi/csiostor/csio_scsi.c @@ -1788,7 +1788,7 @@ csio_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmnd) sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(cmnd->request)]; - nr = fc_remote_port_chkready(rport); + nr = fc_remote_port_chkready(rport, cmnd); if (nr) { cmnd->result = nr; CSIO_INC_STATS(scsim, n_rn_nr_error); @@ -2095,7 +2095,7 @@ csio_eh_lun_reset_handler(struct scsi_cmnd *cmnd) * the former case, since LUN reset is a TMF I/O on the wire, and we * need a valid session to issue it. */ - if (fc_remote_port_chkready(rn->rport)) { + if (fc_remote_port_chkready(rn->rport, cmnd)) { csio_err(hw, "LUN reset cannot be issued on non-ready" " remote node ssni:0x%x (LUN:%llu)\n", @@ -2223,7 +2223,7 @@ csio_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; sdev->hostdata = *((struct csio_lnode **)(rport->dd_data));