Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp119727pxa; Tue, 18 Aug 2020 18:04:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzENvah6OrCB514sOMvxPgUMFm90oKxr5GG43dDV4awSozjWKmBbLVrfWqr/O/AyB0WSS7p X-Received: by 2002:aa7:c40f:: with SMTP id j15mr23341458edq.64.1597799068090; Tue, 18 Aug 2020 18:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597799068; cv=none; d=google.com; s=arc-20160816; b=IXWi1Pdozo0Kzms0IBc4csghMF7TncDgyu1vnfMIcbW7nV2408frhPNfT1c4Pgl9uR qKYIvgqibnaReesRmCEXJror7/wohlT0+ewT2/3NFWehU2myaVZMBzwwjAOHZ/q7gCaC jLeTGk35zAjlYW031SQaKP78RKcUHQWKWM8yMimGUEOtEp9fovOnhO2uo7FJvjoQd86j RzLg8Tcq9fayeibOUTBG9pWy+HuewFTdfsNYfJAwWXyi/WRnF9XwB/3EnpxfX4fhnXEN JnEo+jZJPAnKQYKRWcbXY/yq3sWv2dQGzTTfeFWUdnLWfEhNr+DKRPH0Ao0+ttAWjljF QbGw== 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=QKzfQJuLbyZOxyOmjgtm1pApfjqK+uaRXFMkAwS3g6c=; b=OpAKE8ego567v71R1sPMLoYfdvk8N4tCZb4t9T+Dkut667WMJKQ22O4e+EJ7yojOdU xfQo5+efzK7wQFq0DHDqoxRh83XOdGSlLRETFp9OI97QxM2LrShAdMaFt+tPSW+tD0ro TtUqV4eCADCmjtCbyMV/yoDo3ApJN9/lHLyuGsDtyK+SdBl8rVRaGcBEi07Fu08Q7lXQ uMGj5T1gewol8l6/YaCQOZ4zKtUfKGVPMIH1Z+dsIaVDQDnJt3fbXist/VvkxLlnNOWs q8F3HgpMWGK8/dqRSTmEkH7s6LBNVKoRkW9mak16gBbm89Zf9vajHRFBBYN65aYrl3xv ZtZw== 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 f9si13750324edw.239.2020.08.18.18.04.01; Tue, 18 Aug 2020 18:04:28 -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 S1726717AbgHSBCs (ORCPT + 99 others); Tue, 18 Aug 2020 21:02:48 -0400 Received: from labrats.qualcomm.com ([199.106.110.90]:7052 "EHLO labrats.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbgHSBCp (ORCPT ); Tue, 18 Aug 2020 21:02:45 -0400 IronPort-SDR: 0qPuD+m6cR5LypoWJtvJWkR6V7SuTaXavDU8S7xNxCuahEMy+l/O3dt2o7J52ZxzgsoInEBvKt yMZKp5Ya0V279ZH/fd4pjZkzxqd5PBQyt4307awqvgX9SMgw829Aq4E6EiG9b+wMSHhRHqiOKE CLPWPi9EzB0etn8e6z9uPKpZgsyoFzJ0aWsJcVsSGxaxnVTm07AHqIF8tYfmqUMuBb/M0VplGq VUD9bK4OLB3vi1Vy8AIJorP5OLfDym03NB+ACQixY4ut8JV1ygbmQhKN3UsQtGoIM6l2As8BGM JU4= X-IronPort-AV: E=Sophos;i="5.76,329,1592895600"; d="scan'208";a="47259371" Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by labrats.qualcomm.com with ESMTP; 18 Aug 2020 18:02:45 -0700 Received: from wsp769891wss.qualcomm.com (HELO stor-presley.qualcomm.com) ([192.168.140.85]) by ironmsg03-sd.qualcomm.com with ESMTP; 18 Aug 2020 18:02:43 -0700 Received: by stor-presley.qualcomm.com (Postfix, from userid 359480) id AFC3F215D9; Tue, 18 Aug 2020 18:02:43 -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 v2] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler() Date: Tue, 18 Aug 2020 18:02:29 -0700 Message-Id: <1597798958-24322-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 5586dd8ea250 ("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: 5586dd8ea250 ("scsi: ufs: Fix a race condition between error handler and runtime PM ops") Signed-off-by: Can Guo Reviewed-by: Asutosh Das Reviewed-by: Hongwu Su --- Change since v1: - Added Fixes tag. drivers/scsi/ufs/ufshcd.c | 1 - 1 file changed, 1 deletion(-) 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.