Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp225988pxu; Wed, 2 Dec 2020 20:55:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrfo3tix733r30iCYHY1oMRdMU79inBfYSICGqKxWs7pJvnFosbWS4h99POe1UJBchd+d2 X-Received: by 2002:a50:e143:: with SMTP id i3mr1239479edl.340.1606971307018; Wed, 02 Dec 2020 20:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606971307; cv=none; d=google.com; s=arc-20160816; b=XlWmkpugfa9AAnXHmJoYG3kdapYTgXx3bbrmHKVMEUlKRlmX6d9cTxpn647uqW7lJd UnRJGhjpsSXJNYcm/i1wWw1nvAdRdSmaGy2Uhb8r7jIDlBIBda6eiIZu8uxq56LmEIuG zn4dg2DBVAfZwBndeVONYW397Km7lQvtmKz9RRXILJubuGHPciNgiV6mnJqqRDyYWHaX 1uDadRaxvTpGe4ZMAHnljE2Du1YCYEyrT6mC2aqK8Pa38yHYBnQLKOMdjIycNj+G5/u0 2X+kVvAlLZvgaR5UWlm4ui0FeYemep4F+V55G+KtlhOJPI3MarUwriSivRXN1JxQ4n0Z au/w== 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=DVqWNZuTtofFZokcX5QmQ+AM930Mdry02J+Z7/gdFyI=; b=Pd9nHBB+M7HfhjL1iEVipOVyM/Pux7I5sGzkRCzT8D9EFqE5SEF7q5gbNCWCAxHFws IWasXe6yzpgmpQqi/lwzvHVDp2KvH/hNvkG7R+qTT6wAz8hXOpnnUX9m7MD+aOQKTodD 2jKIx/PCzosi50sXxCiKwT2UuM2l/Dx9yInFM4ZtYwvypDxh7ieXRIgduaoeS4euAyPU U9avGssbnHrDn9rmYMal/wfx6RR4zlXhYMSymtF+ZggwMbzKmGeSflXMFTa+KCSQfTP/ 27chLHLX4mAoNlLl88NP6fnBd6/nxSJ6VdoDUi6j+CvE78++5ub1liLy/qQkuVJ+3uLk 90TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YLE2jRdK; 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 a18si510901ejr.333.2020.12.02.20.54.44; Wed, 02 Dec 2020 20:55:07 -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=YLE2jRdK; 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 S1728030AbgLCEwc (ORCPT + 99 others); Wed, 2 Dec 2020 23:52:32 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:46374 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbgLCEwb (ORCPT ); Wed, 2 Dec 2020 23:52:31 -0500 X-UUID: cab5767c97ed4c38b80841932792ec0e-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=DVqWNZuTtofFZokcX5QmQ+AM930Mdry02J+Z7/gdFyI=; b=YLE2jRdKHixfU7HAH7LeGyLdJbfPn+ay5ILFfGdfdLy90g9sdZFrp83fTNU9+g18U313Jxi+e56yzpgY+2sI44am0wstDVAM3rYsPFD9iJWCf1qChggkxtaJ+LjkoHownDJuGTIfV/ZxmaoSJJkU/HNWbsHUZ3EQb6eRUOq14kw=; X-UUID: cab5767c97ed4c38b80841932792ec0e-20201203 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 51433059; Thu, 03 Dec 2020 12:51:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Dec 2020 12:51:41 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Dec 2020 12:51:41 +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 12:51:40 +0800 Message-ID: <1606971101.23925.56.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 12:51:41 +0800 In-Reply-To: References: <1606910644-21185-1-git-send-email-cang@codeaurora.org> <1606910644-21185-3-git-send-email-cang@codeaurora.org> <1606962078.23925.47.camel@mtkswgap22> 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 T24gVGh1LCAyMDIwLTEy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