From patchwork Thu Feb 10 09:58:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 542342 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 81281C433F5 for ; Thu, 10 Feb 2022 09:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238992AbiBJJsq (ORCPT ); Thu, 10 Feb 2022 04:48:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238777AbiBJJsg (ORCPT ); Thu, 10 Feb 2022 04:48:36 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C7681DD for ; Thu, 10 Feb 2022 01:48:38 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id d187so9247382pfa.10 for ; Thu, 10 Feb 2022 01:48:38 -0800 (PST) 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 :mime-version; bh=qlV21y0vM/YFJarEmfFOG4wH8qa/dBQdeOZa2DaVXm4=; b=Md2kFUtpuCaVXnKay6TWqRPmUxOhJyhDMrwW/pqk5f8//uJoYBjf1O7NVpQvI3yVVx On0cxr/vOvZwySuemF86pbPXdVZ/NHHMWQvRw9H4m/Z4TJN4+NvAejJzMf70WMvzkBqw bubX+EJ4E/a3QuoLIEQWAXZ7Emx9W8eh7uWYk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version; bh=qlV21y0vM/YFJarEmfFOG4wH8qa/dBQdeOZa2DaVXm4=; b=C9zWz2N8VV+1UxQvdmmMBCnaaDIAKvj/bQfF0Hlwuk/3cGakqPJ/dUXCmtFNJde4el GI3Z9zmEBevo8kE3uazWnaaikQzmWD7tfKIZXAv0aRVMSp5HiAzbGUXNvceKecxCbUJs fDMgAHqKAV/2eOPpHKhEpRjLxGIj6FL8yPVNTdI92dRdk1xeToTi/e+yOjNbCA2359uE FskQn2jMOQx1wppZka5zguvesPP7J0z8Gn8xMI+nNmPF0UcTDPViiIcfbmM6D4m4+N7I VN+aWffIGUVDIoR+KRQOt2HHedJbnwidF2/C+srj/5lDPvIQ9XZ+uWoFvIa2ujFCIbBU qp8A== X-Gm-Message-State: AOAM531C3qOzyX0aEmQHmjdQ4YjeZNmBnBG50nWmej+MMgtQjLvUOoIv z6VgZmaKjrE/zn7Gn4PmqjwH0Y1db9ulBly2lUGWHNZhYCv7wj3nkB3J9jHjgZZCuP7PeZr8hj2 NMYN/MUPTe2gP2QXFudeXvyxdvCUJjusUvc9HzU4MrSBEfnFu4wX4+EOfaYVpQ2i9YhhUsWt8N/ 6lg3N/xknK5SE= X-Google-Smtp-Source: ABdhPJxL5lnkNzAU+ROqeBGazzBySmdRMzRcJW0kBjT/nBTbSJW/+tWqRrTY9kuZ8boa9ypELx34rg== X-Received: by 2002:a63:d145:: with SMTP id c5mr5496435pgj.217.1644486517095; Thu, 10 Feb 2022 01:48:37 -0800 (PST) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id o21sm23706698pfu.100.2022.02.10.01.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 01:48:36 -0800 (PST) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, mpi3mr-linuxdrv.pdl@broadcom.com, Sreekanth Reddy Subject: [PATCH 2/9] mpi3mr: Fix print proper pending IO count Date: Thu, 10 Feb 2022 15:28:10 +0530 Message-Id: <20220210095817.22828-3-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220210095817.22828-1-sreekanth.reddy@broadcom.com> References: <20220210095817.22828-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Print proper pending IO count after issuing target reset TM operation. Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index 90911ea..cfa7801 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -3452,7 +3452,7 @@ static int mpi3mr_eh_target_reset(struct scsi_cmnd *scmd) if (stgt_priv_data->pend_count) { sdev_printk(KERN_INFO, scmd->device, "%s: target has %d pending commands, target reset is failed\n", - mrioc->name, sdev_priv_data->pend_count); + mrioc->name, stgt_priv_data->pend_count); goto out; }