Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2954737pxa; Tue, 18 Aug 2020 02:31:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJYbLmviuB70CWf6Txlu7nEMn8BVkv126ALZYOEGhpl1FJFAtcydzD/HP2d/kySWUBArcq X-Received: by 2002:a17:906:5f84:: with SMTP id a4mr18903564eju.345.1597743104883; Tue, 18 Aug 2020 02:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597743104; cv=none; d=google.com; s=arc-20160816; b=GYHe+ScN3k8Ag9ae8bxuwJuDSUOZS5aZ/i0edLKSrGiUi1DeFevANRyI3QT4EpvZbc iIhNCiDcL42bzs0U9fthbFpr/nqsJ6eWIw7izLNZeqwnBUYHBwiSZyjkx9WvcY63f5Ax uwH+2hXnJbfeh9dzyAYC8SYU2V5WlMpzOZBmDn+q4uIuVUUy0U70r4BEeY67zre2DDdt CsezRdVpg3hrxtc/zn1Pfl5wI6iBoLP6JW3JfhmSYuGrCt1bUEyd+GDhJgFKbcpj+ihl vArSBkISiU4XZHqlmuwP2eJJ6V0I8+7Fmv0hI5iU917CKcVYI9/59mByrJ6OcUwkjsBm 0pjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=AHVbPJFk+TLJWIDMizKenawUcEUUBXKZ1Yv5y2vGNuY=; b=sdRnNWleQeNfC7/7Bm1MTse5IbCur8xFPjhfiwtCOfgb6rtsnqzf4V1bw9v26Esj2x hJwpSyEvNQUd2/HjII14NlXcAf+bctWDv5CmqHx/4OeNh8sFL2bAGZWrIykmj4j6zhZH 9d0TC2oyYWulj98XL0f9F5qV0QaAN/f59tkqWBa4+++IuSSvt1SK8/uT19GrSt4vvp7l qHkwvKuhLyhti6H31NdoFYot4bajDRjA2K0P5+cUu1wTqq2vrWRwux669cjzH7ACYnJT VaYmFgy3srYRNU+FsEkk5yxsqCMIqXrDUeqH5ydxRBTRv9U5bAGt3Ar/JKuHAPrqex0a zqcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XqZ7IzUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si14254495edl.234.2020.08.18.02.31.20; Tue, 18 Aug 2020 02:31:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XqZ7IzUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbgHRJaU (ORCPT + 99 others); Tue, 18 Aug 2020 05:30:20 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:25388 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgHRJaT (ORCPT ); Tue, 18 Aug 2020 05:30:19 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597743019; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=AHVbPJFk+TLJWIDMizKenawUcEUUBXKZ1Yv5y2vGNuY=; b=XqZ7IzUL8Nw0Vn37g1M7niGEggQ8/49MRS9XUuM4aNd2+lSXDNgKgHPF6kKi3tEam5iLr3GK f/UyrJfF/LFkEPEYaKm0b8nqQmZg8EtrdpDhDQzcCSXtqB5XZp5LC59v6rnm80k+6BsTQIvF R/jTb/DX21lFVGnbMkj0+eSJRrs= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 5f3b9f6ef2b697637a220853 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 18 Aug 2020 09:29:18 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EB685C433A1; Tue, 18 Aug 2020 09:29:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hongwus) by smtp.codeaurora.org (Postfix) with ESMTPSA id 19D12C433CA; Tue, 18 Aug 2020 09:29:16 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 18 Aug 2020 17:29:16 +0800 From: hongwus@codeaurora.org To: Asutosh Das Cc: Can Guo , nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Bart Van Assche , open list , linux-scsi-owner@vger.kernel.org Subject: Re: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() In-Reply-To: <20200818054237.GA880@asutoshd-linux1.qualcomm.com> References: <1597728047-39936-1-git-send-email-cang@codeaurora.org> <20200818054237.GA880@asutoshd-linux1.qualcomm.com> Message-ID: <72617138cbb0ccd5a50a9b7048251489@codeaurora.org> X-Sender: hongwus@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-18 13:42, Asutosh Das wrote: > On Mon, Aug 17 2020 at 22:21 -0700, Can Guo wrote: >> Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error >> handler and runtime PM ops") moves the ufshcd_scsi_block_requests() >> inside >> err_handler(), but forgets to remove the >> ufshcd_scsi_unblock_requests() in >> the early return path. Correct the coding mistake. >> >> Signed-off-by: Can Guo >> > Reviewed-by: Asutosh Das > >> diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c >> index 2b55c2e..b8441ad 100644 >> --- a/drivers/scsi/ufs/ufshcd.c >> +++ b/drivers/scsi/ufs/ufshcd.c >> @@ -5670,7 +5670,6 @@ static void ufshcd_err_handler(struct >> work_struct *work) >> if (hba->ufshcd_state != UFSHCD_STATE_ERROR) >> hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; >> spin_unlock_irqrestore(hba->host->host_lock, flags); >> - ufshcd_scsi_unblock_requests(hba); >> return; >> } >> ufshcd_set_eh_in_progress(hba); >> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, >> a Linux Foundation Collaborative Project. >> Reviewed-by: Hongwu Su