Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4703155pxa; Mon, 10 Aug 2020 16:15:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNdbtuUlNHhzP170JzVtD0NGw0V/lCbKq58YdqaVsEby3ogZd6ON3qbibKpk89YnmvAyHB X-Received: by 2002:aa7:d85a:: with SMTP id f26mr23423936eds.363.1597101302562; Mon, 10 Aug 2020 16:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597101302; cv=none; d=google.com; s=arc-20160816; b=pfQdrjyoIYL0gw7V/aUTwooewTUur8wl7eFlNmAS5yvN3qoHJqWMazvA+64N9ZqcR0 NPNVrtIxVMUObtPxo1nJodnIYNp8xiUd+LliLWrC7ec5lFlD9IWwR8zwUfRY7BuLq9BV /f/+UR3jKomGj3ybTrIlnBMSRKv1NRj1JAQ7Wxm8rwShAGyJ9lxBe64NoIQDWIP9IDPC ayU2GuZdJzyI2rRRoYl+LcOBsm+bKarlyF8UJlox2C0NEclwhCieIWXWgNv0cyr16m18 79hTdF/1w4cWmMK/WmhAAdgZARa2YGK3zMd4Y7kce5cdNpLmYeyGWG4ZK/s48kBfBZrh 2OMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=SP19FxLxyYLbW9Px5R4ailpBhC/9wbiM7jMfmUI6oe4=; b=PLeVpMDgUNtdcZN5urnvEaleSIFsl4Ogi1yqFxpyBBdVWDkAJVGvRorHStOG1vkYaa J7sqQVLVQh0EdJtgf5haMyhLCD+80y6/Zu56YjvN0E5I+8quGN83wu8OBZGYPBwi7GUH xaaYZEGt6OR+X3HiBezQqxD5qT7V9dYcgVEIpLVLmay9RgsSpZn+6cS8eVA0ilX7RiY9 kWUS46Mas6zQIwsTpREc9yk7YPZKqxJTxnX5S1q787oAaRbNxOnrcGTo+Z4SvKkRz7k1 WYqodI7jThm+Jxpq8W3mmUI0YwAmqhR4MTUeJuYvRIe2uhCjFbzdIqNPi6JNNSli5eiK r0RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dSRwc334; 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 q14si11494959edw.527.2020.08.10.16.14.38; Mon, 10 Aug 2020 16:15:02 -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=dSRwc334; 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 S1727084AbgHJXOA (ORCPT + 99 others); Mon, 10 Aug 2020 19:14:00 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:6689 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726634AbgHJXN7 (ORCPT ); Mon, 10 Aug 2020 19:13:59 -0400 X-UUID: 59b525ba5ca44bc1bd10e0c9689471a1-20200811 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=SP19FxLxyYLbW9Px5R4ailpBhC/9wbiM7jMfmUI6oe4=; b=dSRwc334D7UaYaiuNgHSZFCXrOokc9vhN9jESQU/GBE3K7XvPPaAoR3RqqtuWYcmLWs1nwNIXElsHE6ENx9mGlVlSgbOsCLJRWttBGoezdCgQSniK7FnmNinpI+RjTmtA3f2lXzUNTGlCzee3IvYyjhnwW8czsBxwscYkDR3P9Q=; X-UUID: 59b525ba5ca44bc1bd10e0c9689471a1-20200811 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1591749017; Tue, 11 Aug 2020 07:13:55 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 07:13:53 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Aug 2020 07:13:53 +0800 Message-ID: <1597101233.19734.0.camel@mtkswgap22> Subject: Re: [PATCH v1] scsi: ufs: no need to send one Abort Task TM in case the task in DB was cleared From: Stanley Chu To: Bean Huo CC: Can Guo , , , , , , , , , , Date: Tue, 11 Aug 2020 07:13:53 +0800 In-Reply-To: <5c6f1ad9f703cc5721e081452e869a9ee6bc4ab6.camel@gmail.com> References: <20200804123534.29104-1-huobean@gmail.com> <871fdbc1719d7a3c469bf857071aa2c6bd71ddaf.camel@gmail.com> <5ad1dbd76a0d5d476641a01bfb8bd435@codeaurora.org> <5c6f1ad9f703cc5721e081452e869a9ee6bc4ab6.camel@gmail.com> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQmVhbiwNCg0KT24gTW9uLCAyMDIwLTA4LTEwIGF0IDE3OjQxICswMjAwLCBCZWF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