Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1016610pxa; Wed, 19 Aug 2020 23:36:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4ac0NlIRxCvtRuPHLvTbr1f51S9xPqG4C8FDiEbq4tKhYSqd5Na1V7hWlhtdq2hzW6mb+ X-Received: by 2002:a17:906:fc10:: with SMTP id ov16mr1918527ejb.171.1597905410182; Wed, 19 Aug 2020 23:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597905410; cv=none; d=google.com; s=arc-20160816; b=I6n4tYThcdnPKF0ElqCkfGc0dsg/YZZX4zBrr3539EZAen5InPf6knJPVl0+YFsCwW 8OpLw/TO9xdkZhjrDiqXlCMmKY6/tW/W3zgoxhc/MNzJqTEidCN/DwEdwKnZwfsC9P2n cb+K5LSUpqAmUBCiDQkJEX06TQ8Pl2juCpDVqheRs1uLpViz+9+pM1/s7kvrTa3tb32/ pzw8EkoiaDhHq6HkBAF3PYAj0O6cvPC+y/ZRcVVgw6nKJ8cJ0/oJhjYwHPlz95hlO7vB 2WPvroARbcVgRqZFgYVZw5vSwHP3KPhoVvNiXsbccuZ0ri/5sfnJ7I01EmgQJVgPY+dI MQNw== 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=BsHP/VsghrgKGhgGXDoD+p7gF9YWU7QmO4EwsQlb5U0=; b=Hm7D0AwErZXDQuD7R1pkTJ98ZkwtBsze1tE9IA9Llk+CBn1zrBY1hCuL5zl/E9walT IPEJXLsnm+t5BuYI9dr7RyauY6ZPNUN82HFIj+Cg7wjO+JZaPHOTJpffBqBevfnqkmRJ 6KND08lp+Wdhl9G17GHk2aIf8DD0xT/jdb9Zabh2+wbVyqmkwqNVl6vkTPjOoNhHqPAY DBvMQbm3MnkK4mn75Y+WAqQ/qhuwXeIX+YA67fEadaCgngOhTebgwZz0yFP1y5Lr8DgX 9EGkx4WnwAOrLNIaB1JDYlv/qU6ee8o5B5htpg80wf5ZSA5YFVGTqU6xLBhOXQoeQdkA QUFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OO421mr3; 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 e8si843313edv.104.2020.08.19.23.36.26; Wed, 19 Aug 2020 23:36:50 -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=OO421mr3; 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 S1726793AbgHTGfQ (ORCPT + 99 others); Thu, 20 Aug 2020 02:35:16 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:46855 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgHTGfP (ORCPT ); Thu, 20 Aug 2020 02:35:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597905315; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=BsHP/VsghrgKGhgGXDoD+p7gF9YWU7QmO4EwsQlb5U0=; b=OO421mr3Ea/+RzgrUmjSk/8xweSO4ahmKQ5pXxEaeIJNXOEha6DhcNYg/MqqZ+clEoc34uj+ UD2I38pks1zgrEbxudvKSRUUC9+eXlEXRdBPCQGH2tUzAHPVY179dr3ewBub12BelKWjkYNE kC7HAQ2xjjXLmEKEDn91B0AnVD8= 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-n03.prod.us-east-1.postgun.com with SMTP id 5f3e199e4db56de6f024a728 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 20 Aug 2020 06:35:10 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 39DD7C433A1; Thu, 20 Aug 2020 06:35:09 +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: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6C85EC433CA; Thu, 20 Aug 2020 06:35:08 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Aug 2020 14:35:08 +0800 From: Can Guo To: Avri Altman Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Bart Van Assche , open list Subject: Re: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() In-Reply-To: References: <1597728047-39936-1-git-send-email-cang@codeaurora.org> Message-ID: <85f3004ef2869db77522d0e501982b9d@codeaurora.org> X-Sender: cang@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-20 14:24, Avri Altman 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. > > "fixes" tag please, for those who don't read the commit message. > Thanks, > Avri Already added one in the V2 of it. Thanks, Can Guo. >> >> Signed-off-by: Can Guo >> >> 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.