Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2842551pxa; Mon, 17 Aug 2020 22:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVvCFNbiCBRZIGa5oQkUOGsdtvUZreazJe48JaEqaV5KoiViUtDp5FtBQJfY2f9cbrwV6P X-Received: by 2002:a05:6402:13d9:: with SMTP id a25mr18519253edx.141.1597728141375; Mon, 17 Aug 2020 22:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597728141; cv=none; d=google.com; s=arc-20160816; b=l3pqKGuof8Al4+IDdyDVlcOHa0K32ONJS47UMXZzkvzRzMbcbdzBNeF7cIOqXZEVOc epu/WoJ4tM9uortDwqHVHuU9hFX5ojMQHSbnTnvt6GKWBV2YEAge21SQIaaUQFPzqSPD WHf5IG0rNJ7GGe31RgogMEbG4N5vzakme0CAkIVXTVHysp9jHUztsdQpBhq1NUPL1xzF Vg5NTAqAIITwPo9nPF+unKOWB83sKzIW1IoiASkd0Y3GeQ1PMZDso9CBvXdZvOKlh4G4 obK34w0NjKXCh9NNiFaNKi2gOpBR5mclKSz1f9/B4qGzaDJvMdG6NFBaxBJ6mgNfWM9W 8sgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr; bh=oqNJIAaBEru1VVf/9JAbODp+OoCBuhvUAVZz3fbr0OI=; b=Rqc4CkI+Ba59dYdusvgkzOuTS6FLbJwU4QPIckOxIdeVDp4lWUVMpOihd233cfHksO qZb/EClgwNNwEJaiSTXVZQr75XQy1C7eDTdPTtQ+re+t39qUbVtHi8pJh/1UEtZwpxqT 2kq5zJtJMmkoEMJglAjwK7OqdyIUrIeF/8HsKnngbdCFAOiup766/Lce4m336I8rcImn m755U69cHrDe4UL+EW+HPCJFMOMc7HTHJA2mYCCfiBPPwaZXAcZycMa2MNYcSpPsz44Y KZs237HWFDnMKfUJI1bFxJ8SgVGBmJU0izMEmJehcm/0pMvEyz28pV5VUfzGoRQtnFGg JwYA== ARC-Authentication-Results: i=1; mx.google.com; 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 yh22si14976951ejb.583.2020.08.17.22.21.56; Mon, 17 Aug 2020 22:22:21 -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; 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 S1726382AbgHRFVA (ORCPT + 99 others); Tue, 18 Aug 2020 01:21:00 -0400 Received: from labrats.qualcomm.com ([199.106.110.90]:49492 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbgHRFU7 (ORCPT ); Tue, 18 Aug 2020 01:20:59 -0400 IronPort-SDR: hVAo02F3cXNxOnSAKffXJ7khH6/2x9Sd18ogEVAtUT0crsO9JqM3SEOXN4HOZ7C1CEOUI0BsxI IuyDpZ8znxeF7/aBOfDyEppktrTtNe0DsUA2W+Lqto1ASLNnBqoGPpbe5MLBVb8gm+8qEytvlb n9tAma6Ov5Fmjc7tipOOsQYl1Jj+6MI9hXMUbBtHCxF+QqBBhP51FhpzxabmdDAgqmoAlDORQK BQWZp2gYZsrtEk4YvnQexzBamMUNCfcOe0TIESI6ZcIzmCmBVEhEirwvxFj4RQvJF6rk3woGzZ 2FQ= X-IronPort-AV: E=Sophos;i="5.76,326,1592895600"; d="scan'208";a="29090719" Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by labrats.qualcomm.com with ESMTP; 17 Aug 2020 22:20:59 -0700 Received: from stor-presley.qualcomm.com ([192.168.140.85]) by ironmsg01-sd.qualcomm.com with ESMTP; 17 Aug 2020 22:20:56 -0700 Received: by stor-presley.qualcomm.com (Postfix, from userid 359480) id 92AFB215B6; Mon, 17 Aug 2020 22:20:49 -0700 (PDT) From: Can Guo To: 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, cang@codeaurora.org Cc: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Bart Van Assche , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() Date: Mon, 17 Aug 2020 22:20:43 -0700 Message-Id: <1597728047-39936-1-git-send-email-cang@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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.