From patchwork Tue Oct 3 11:00:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandrakanth Patil X-Patchwork-Id: 729210 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4FB2E7544B for ; Tue, 3 Oct 2023 11:00:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbjJCLAP (ORCPT ); Tue, 3 Oct 2023 07:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbjJCLAO (ORCPT ); Tue, 3 Oct 2023 07:00:14 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5652AC for ; Tue, 3 Oct 2023 04:00:09 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1c724577e1fso5704795ad.0 for ; Tue, 03 Oct 2023 04:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1696330809; x=1696935609; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Xgx3o/jIr/l/ypopEhO2FKmO6Z1HCmemBIxrL95ao5E=; b=cOdWzgc4+HVmInPwhPWt2+DE8InGRnN6ios+1PV3duTV8qn9zywSPuJsFfVW7vbPvM rdZtLJuyoVYt1CqNTi/a2QOdc9IKhQeUqdR0HaStQdiLoxzgXlngGayw8mHp13/HIxxE ecalTGBacZtDG3L3ICJnkQGZFGPJbC/mOLiL8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696330809; x=1696935609; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xgx3o/jIr/l/ypopEhO2FKmO6Z1HCmemBIxrL95ao5E=; b=hkPADNQJbfFOJfnUADz99COKshT2dDTZmZoTn2IvXbD2TLeCJqKhD18A05mUjcyBEN jXzGTISglJowilvaMVS0PmjA62ZY47AYJbftIeBwPsQ40HGpKyUGtV8F0V0u1j0Wj/iH Oz8LL22d9M4p7XAMoDydpfO5gC1XD2JDE4JZaTIBvLTE9Bf2C/24v0/JLJzoyJptb2Ki z5xj0lopBUGehgqySFRIW6WFXCoLQslHIrQ7hgDK0dGilkLsZNz7OexKy9hqUhPiutPa SjIvmTmQD5McbzAj6TYKi46ZXUa0Ko27kzPx3OiJSXP5SfgBNOLC38aXiIwhO4U+43QP aqGg== X-Gm-Message-State: AOJu0YzO+kfDh7p5aFVlE6RztSbowwPnAtsOmUrzsMjnnZZtqlWfxEgD 06R03T7oB3n74VbQTeQPdB7W8ftOFUj0cRaoPJTdPOTZ5MvmfdMAzL0vEEhm4eoIzwIKws8Q7JR GlgAuUx2aoW3jHgFwMnpTNjfEOVUefs7qHGdr2NpmgApnmGTiJpnGfDok3JDLdYb0vJxfpmyDeC ef7QOjsY+79VjhzSzeEF2m X-Google-Smtp-Source: AGHT+IH3dvZLp6Fas0ZPHnKsZXW25jRGyn0yV67O9XmlXCbmZ9Cq64gbHzGYqcqfQHa0K0vyPybOtg== X-Received: by 2002:a17:902:c244:b0:1c4:4efc:90a6 with SMTP id 4-20020a170902c24400b001c44efc90a6mr15308714plg.38.1696330808739; Tue, 03 Oct 2023 04:00:08 -0700 (PDT) Received: from dhcp-10-123-20-35.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id a7-20020a170902ecc700b001bc6e6069a6sm1211909plh.122.2023.10.03.04.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 04:00:07 -0700 (PDT) From: Chandrakanth patil To: linux-scsi@vger.kernel.org, sumit.saxena@broadcom.com Cc: Chandrakanth patil Subject: [PATCH 2/4] megaraid_sas: Log message when controller reset is requested but not issued Date: Tue, 3 Oct 2023 16:30:19 +0530 Message-Id: <20231003110021.168862-3-chandrakanth.patil@broadcom.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231003110021.168862-1-chandrakanth.patil@broadcom.com> References: <20231003110021.168862-1-chandrakanth.patil@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The driver now includes the print message 'IO is completed, no reset is required' when a reset is requested but not issued. This message is displayed only when pending SCSI IO is completed before issuing the reset. Signed-off-by: Chandrakanth patil Signed-off-by: Sumit Saxena --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 8a83f3fc2b86..c60014e07b44 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -4268,6 +4268,9 @@ megasas_wait_for_outstanding_fusion(struct megasas_instance *instance, } out: + if (!retval && reason == SCSIIO_TIMEOUT_OCR) + dev_info(&instance->pdev->dev, "IO is completed, no OCR is required\n"); + return retval; }