Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4012707pxj; Mon, 24 May 2021 21:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykUZzq7yo/RWINyPua4L2/AiyWHqodTRTnbTm/lJOHxvo0MulRrHHxcbQsEppzqEMpHUL5 X-Received: by 2002:a92:d983:: with SMTP id r3mr19525391iln.262.1621916991223; Mon, 24 May 2021 21:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621916991; cv=none; d=google.com; s=arc-20160816; b=b+4UQNlMDRwEsXvf32oMlkz7EAjdMsmvsSzhVmMe36kMwoi4tn6RTcJY5u84wohHHf keWXKu2vcxgqN9dKANBNMOhLtlXi93Eguf1dohtXuVF1g5amqaMfi68PZ2ZGQo3bOt9p EEb8/l0U/wKVYE2VVLxx8JzOzPHrmaAw8k0Us+F3fF6+6Z90TbFUDOr8VsJNIn1w0jnI Qknbq1PxwE5L4fc26jEULumERZEfYHNuVClMQdSjxBWxfDq0RL+16JbyULvz8j45aHpA xjNoZPYMqqEHe7UrpkFlvKSp9Z/O5dNt/i9R7G7E8UgNecoJ97sROMV+JL1B/HjsvzAe t9QA== 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=/xiWf/FwDwfPCNEmpkZcRjDImK9Xd2GJHsb9gmpPJA8=; b=XP48mV3A56KjCCw2HF3cg5Q6Okdix/Yh9klyS4HiKUf5GpJpdxql/NCntgTdVSFGlI Y3haCwGgJGN0jgXCQh9prOah+/Z36Zpz1Cq92dJ2WccgKQxF0ftqRjlggwmoHgxyIIz0 uM6Jex5xS058Wp1LhQWEhyTbHHk9HTnNvoxnjSBfIN4zh+NUM4jS2aG77mxvXQbWSj32 EgAQweC7rXPV9Sc+NmKXlxaKvtTWP5un9IvSWoFT8Z1QnZNvOBREd5V2iKu88dLahleV moeU6omsyQDh7WDmR7FMm+xOI7/01ROzKY4lDKlO/qK+j1O4GgjyrXiym/4n3ciN4/7F imNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YwTcHZ84; 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 i9si2251762ioh.53.2021.05.24.21.29.37; Mon, 24 May 2021 21:29:51 -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=pass header.i=@mediatek.com header.s=dk header.b=YwTcHZ84; 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 S230270AbhEYER2 (ORCPT + 99 others); Tue, 25 May 2021 00:17:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50891 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229446AbhEYER1 (ORCPT ); Tue, 25 May 2021 00:17:27 -0400 X-UUID: 7a2a5cf4466748ffb3bda70ffd5b3780-20210525 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=/xiWf/FwDwfPCNEmpkZcRjDImK9Xd2GJHsb9gmpPJA8=; b=YwTcHZ84cDmXTChP/S6Ta9D4HgMHgQa2RB38ycRSN9RROZ4cA2oGxZw1CkDtSlbroW1HA573RuagL0XFZzTsxrmFl89YATPJS80x313wlp5RG4m2tHnaiYM6gW05/zowHDqzRMjN90SzK8lGi7B2g4etvZydkHK9DrTkg2jExzk=; X-UUID: 7a2a5cf4466748ffb3bda70ffd5b3780-20210525 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 97996577; Tue, 25 May 2021 12:15:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 25 May 2021 12:15:53 +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; Tue, 25 May 2021 12:15:52 +0800 Message-ID: <1621916153.7096.0.camel@mtkswgap22> Subject: Re: [PATCH v1 1/3] scsi: ufs: Remove a redundant command completion logic in error handler From: Stanley Chu To: Can Guo CC: , , , , , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Jaegeuk Kim , open list Date: Tue, 25 May 2021 12:15:53 +0800 In-Reply-To: <1621845419-14194-2-git-send-email-cang@codeaurora.org> References: <1621845419-14194-1-git-send-email-cang@codeaurora.org> <1621845419-14194-2-git-send-email-cang@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 T24gTW9uLCAyMDIxLTA1LTI0IGF0IDAxOjM2IC0wNzAwLCBDYW4gR3VvIHdyb3RlOg0KPiB1ZnNo Y2RfaG9zdF9yZXNldF9hbmRfcmVzdG9yZSgpIGFueXdheXMgY29tcGxldGVzIGFsbCBwZW5kaW5n IHJlc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