Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp237475pxu; Wed, 2 Dec 2020 21:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0n8U77OYDJ6nVE0wRLG3+h5TUkw+y5gi8hz3lcXt3s4OFi7zDQa+IdTcZ9S1lzH8bkegG X-Received: by 2002:aa7:c698:: with SMTP id n24mr1277173edq.277.1606973048223; Wed, 02 Dec 2020 21:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606973048; cv=none; d=google.com; s=arc-20160816; b=YsZj45P94Nd2efVaCaOx+AVuTInTzbA1vo425Yax3UofCbr9VkPlhKehhpFu7RkThk YozqePuo3cEPx2xsZ4dxGHE3fCpg4IvaAcD8T9b4T3rWAa5gga/nxUs4WTRtMHhNm1Pw A51ga03vcyQUt4U0u6xLa4WrjMlqJ8dbQtfB6/3SrEILh1NZjXKMgvxTVrVKwAXtNgL9 y0U9fMKHh/VXp5M+f/VeqleCNaCW201kBk/X2G559nQSKlhd8eNPxUS6Mbza8BDeAkWc 3UDmd38htGsD6Van2MSHgY+cyfyXAe6tZIDHL0HHXtu4R+nVbkXfJjv+PpLeX2wbddIH O+jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=IR9GIF9gfEHIAJs0etv7b233QVEgwmFSvI6BAKS8O3s=; b=gC4PGDQ6PSVciL5Ict/ueAkjMGwPAKJM0fyXOYufJVuZCXn282QLD7KKr9VuyNKVa1 dn6Mvj/4mohF7he69Y06TyDH02TKMb7FU/NDxSELwDx2hMLqGHxInW40I5ooQyY8DY+s FJ5hceq5OBlCe7u+6fKRsvLN1FRQuxfq8/xJsb8BKSFYuKUMGtbMBIGk5SCbA/+55gMx YvdfhzJ/3U1ScjcbZom+km46JSjdUiSGyLx+aB4amT+djnDvUeV2kvRW8N/+lAB1l4i/ FftoN8Aewn7VOVWJ3QTftLibj+/mZ9jIpkRPtJfSJhhZPjafdnd/DeduYMU6O6xgcaK3 OrNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DLQTC3g7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si505880ejr.236.2020.12.02.21.23.43; Wed, 02 Dec 2020 21:24:08 -0800 (PST) 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=pass header.i=@mediatek.com header.s=dk header.b=DLQTC3g7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727042AbgLCFUE (ORCPT + 99 others); Thu, 3 Dec 2020 00:20:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37579 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726143AbgLCFUE (ORCPT ); Thu, 3 Dec 2020 00:20:04 -0500 X-UUID: e736cab66be04b8b9cf47b26d9082e80-20201203 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=IR9GIF9gfEHIAJs0etv7b233QVEgwmFSvI6BAKS8O3s=; b=DLQTC3g7ETY/2RGzBkdGm3lFulhmsDmO+nOYRbAIG9Da+rLLSnN69LxYYRTr5Zshl0mvZGBEJ54wXPmbiHF4JEcLQmnh3JYFB/fVECV9EyTD/ljjehhYzMa9Zou/7ylQoGNUnZXRbd1ieCXgJdrnyCBn44WqTje4IXTFKUmurqA=; X-UUID: e736cab66be04b8b9cf47b26d9082e80-20201203 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 17840846; Thu, 03 Dec 2020 13:19:16 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Dec 2020 13:19:15 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 3 Dec 2020 13:19:08 +0800 Message-ID: <1606972749.23925.58.camel@mtkswgap22> Subject: Re: [PATCH V7 2/3] scsi: ufs: Fix a race condition between ufshcd_abort and eh_work From: Stanley Chu To: Can Guo CC: , , , , , , , , "Alim Akhtar" , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , "Bart Van Assche" , Satya Tangirala , open list Date: Thu, 3 Dec 2020 13:19:09 +0800 In-Reply-To: <843a2bb60b16929239ac5ee100bac465@codeaurora.org> References: <1606910644-21185-1-git-send-email-cang@codeaurora.org> <1606910644-21185-3-git-send-email-cang@codeaurora.org> <1606962078.23925.47.camel@mtkswgap22> <1606971101.23925.56.camel@mtkswgap22> <843a2bb60b16929239ac5ee100bac465@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIwLTEyLTAzIG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