From patchwork Thu May 31 10:34:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitra P B X-Patchwork-Id: 10440669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B443602BD for ; Thu, 31 May 2018 10:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C8F62921A for ; Thu, 31 May 2018 10:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3B132922D; Thu, 31 May 2018 10:35:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743132921A for ; Thu, 31 May 2018 10:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754479AbeEaKfP (ORCPT ); Thu, 31 May 2018 06:35:15 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:39691 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754452AbeEaKfP (ORCPT ); Thu, 31 May 2018 06:35:15 -0400 Received: by mail-qt0-f172.google.com with SMTP id p23-v6so2357786qtn.6 for ; Thu, 31 May 2018 03:35:14 -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=mKMqHga67dCN20JEByIAYPiOG2Mgv1sRA+UxPfKOox0=; b=JQuiLlI8MEQMct8nihROKNDsJpPXqvLRjzwTH7/JtUX756rwvA45HCVMvacwVxnNEb R6NV7MuD0+e5ka+fj7fw2vRnD4yPj/Jl7Hwv8/MCDp1UkMtktIeae36zIk4JRqHyvJeH OEdW5GSTsvFNQh5smdFUBEXVpFD8EmIbhhx3s= 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=mKMqHga67dCN20JEByIAYPiOG2Mgv1sRA+UxPfKOox0=; b=IZTV/ncHbwLDIlW805SmC008Oyp//k2odthtGTobBL7dj5++nJI07Bs9szcOpp7LS5 AMvcZLaopa6VTg2Rbyzs6MNq1g1HvXbPwwZKiyT1tGvLC1b+hO4w3ygBB/vacV4ALKB/ lv4jd3xG0FlMTgOoxCsf3PUuEOA7AarBWyugdZYDiUhukVtJLFsMUChpUoo+SkRcLSfy bOeiVV3njZ984b+46PQfo7mpTfboGYbEko5M/+JbvECXfeBRX8TV8ebYjFOvtC3sVhPn 6o8boImqexDLacNSxyF1ebHN1EQGxXx9aIMOwMJuyaECHAnP1FzfYlcTt8DfHVHUph9z lmsw== X-Gm-Message-State: APt69E1cMijEwa38LXNeYDAJH3jh+bG5dydzuWfnijSlnIcvxAjmjMQM IPssf5pH3/bO0C77HGWox9TEGp8TBwU= X-Google-Smtp-Source: ADUXVKKGA2U+cp3EG6ChoF9tioEvD1GlYAB7pE/HHJcOUXu/65cjFi4pVB6mrx/m8RdcBn0ar1UuVQ== X-Received: by 2002:ac8:1a57:: with SMTP id q23-v6mr6236658qtk.297.1527762914256; Thu, 31 May 2018 03:35:14 -0700 (PDT) Received: from localhost.localdomain.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n79-v6sm12661343qkn.84.2018.05.31.03.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 03:35:13 -0700 (PDT) From: Chaitra P B To: linux-scsi@vger.kernel.org Cc: sreekanth.reddy@broadcom.com, suganath-prabu.subramani@broadcom.com, sathya.prakash@broadcom.com, Chaitra P B Subject: [PATCH 2/6] mpt3sas: Incorrect command status was set/marked as not used. Date: Thu, 31 May 2018 06:34:48 -0400 Message-Id: <1527762892-3204-3-git-send-email-chaitra.basappa@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1527762892-3204-1-git-send-email-chaitra.basappa@broadcom.com> References: <1527762892-3204-1-git-send-email-chaitra.basappa@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In _scsih_scan_finished driver should mark port_enable_cmd.status as 'command not used', instead base_cmds.status was marked as 'command not used'.so updated code to mark port_enable_cmd.status as 'command not used'. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index d31f0cc..884878b 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -10394,7 +10394,7 @@ scsih_scan_finished(struct Scsi_Host *shost, unsigned long time) } if (time >= (300 * HZ)) { - ioc->base_cmds.status = MPT3_CMD_NOT_USED; + ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED; pr_info(MPT3SAS_FMT "port enable: FAILED with timeout (timeout=300s)\n", ioc->name); @@ -10416,7 +10416,7 @@ scsih_scan_finished(struct Scsi_Host *shost, unsigned long time) } pr_info(MPT3SAS_FMT "port enable: SUCCESS\n", ioc->name); - ioc->base_cmds.status = MPT3_CMD_NOT_USED; + ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED; if (ioc->wait_for_discovery_to_complete) { ioc->wait_for_discovery_to_complete = 0;