Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2852224pxa; Mon, 17 Aug 2020 22:46:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydhjiSS9K1ATWx1GVzMCu4n8M7XdCRXTTvXkWb73pODAZpo4+ZA7mNTAWYtu88AijtevYe X-Received: by 2002:a17:906:4994:: with SMTP id p20mr17138144eju.299.1597729615086; Mon, 17 Aug 2020 22:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597729615; cv=none; d=google.com; s=arc-20160816; b=wZr9GsI/0zIBjqwDZhNUCENWbVDUDmrTx4Js3F2mM0apK+WpihrasNCStLHfSvuig/ vaXLormalA8JDU6Sc7tRHNqw9OJzAcHoGkI5sek95sSxiMgUo0+mwGLCS0khIUyRWCSp 6yCTF4V2/Art+ovpSp4kGXTlvkjxWFpraz8kCYtyT0fY4pznvyngS55PdNMe4FRQENTI L5xeyK1rFUBiR5l5cR34/jFw4GmO7PCTHcnIQTZEm8jMrFSwKo4EEiwVab4z5jNntn5J +SgXCUnydyqS2l68GQ70bm+nsgyLDRfUqwna5MMUM+FZGRloeuBAA5jSrWRPDpmbQ9Gv 0+2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature; bh=hVGk9WoKFEI85hZfqqpjRqhbkGzyJRRPLjlsKCsoybc=; b=L1WR4c9KgCzXZKu1CjgTKTcoqu/toWT4Ys3hDSaSdTjMSWmLlR7FLyY3ZknFK9ZPVZ mlTCbTNGiXxUMPczR99u9/gsZJRSOWxq3J8Rec9koxQRf3CaipjiOZ6gwQOpj8neNYKW IARt51UmbIbFc7g+wH674PsGsbakVwIVgwenLhVbwSQXBYM307DK/wjZzjqZIh5F3SHo R9C6v7/pjc7TyZ/AyITvW0k3X14Z/6C7/H8oVNiOSldk8qrAc0kPR6+b9RQCv0S+lU/O 8OVPCKB1839H75G0awENVbTzVuyoUO/d5UdI9JeE09i/j3R8cgDgrstRnlgChQfmr3NL UYoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=oEIqaBzZ; 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 h6si12651448edz.180.2020.08.17.22.46.31; Mon, 17 Aug 2020 22:46:55 -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=oEIqaBzZ; 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 S1726343AbgHRFnf (ORCPT + 99 others); Tue, 18 Aug 2020 01:43:35 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:56113 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbgHRFne (ORCPT ); Tue, 18 Aug 2020 01:43:34 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597729414; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=hVGk9WoKFEI85hZfqqpjRqhbkGzyJRRPLjlsKCsoybc=; b=oEIqaBzZcBVubJwfaYGrty+0RsokHpLe1++1X82ttwJ7tnZN824BhUbvZMW2j6nza8z5Xym8 fgPjllyhGDSxm8BWKVKYeUp2vK7i7l8Bk5hCCGPADT9JPj7tGyYm0niDmgXOZyqvnGie2MtB AE71XEo3MibMYoJ8VwCDFdfRKCQ= X-Mailgun-Sending-Ip: 69.72.43.7 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-n07.prod.us-east-1.postgun.com with SMTP id 5f3b6a56440a07969a98b25a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 18 Aug 2020 05:42:46 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1FA5AC4339C; Tue, 18 Aug 2020 05:42:45 +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,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from asutoshd-linux1.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asutoshd) by smtp.codeaurora.org (Postfix) with ESMTPSA id 97F1EC433C6; Tue, 18 Aug 2020 05:42:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 97F1EC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=asutoshd@codeaurora.org Date: Mon, 17 Aug 2020 22:42:37 -0700 From: Asutosh Das To: Can Guo Cc: 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 , Avri Altman , "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() Message-ID: <20200818054237.GA880@asutoshd-linux1.qualcomm.com> References: <1597728047-39936-1-git-send-email-cang@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1597728047-39936-1-git-send-email-cang@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >