Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp530717pxb; Tue, 3 Nov 2020 06:06:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWRs5Os73TpnzCOnTeMac3s4TDKSDIM98mTbWH0QNaGeuhiSKnVArSP60jhg9H/FBUhAdO X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr19592891ejw.94.1604412403227; Tue, 03 Nov 2020 06:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604412403; cv=none; d=google.com; s=arc-20160816; b=sCWMPqin9Zb/5sY6K2DpHpea+XyYBEYqhLWXhCq+IvstaajVB2pw6HiI/cVHgGkjnT h6XUFOMPLzeruHZUkWc/L9AMKIIN/vQwFW70u90daiqkXFuTFRLiWITmGN5RhtC/ONyi aN64e8UfXzmd3HGkLr9YBBnmcx0nTN9j5Xspv0gj1eRGMeecDTJM3BwigKjEUrcN1QOv UZsOA9xOktB3RBXwBQzC2c5529SE7aaawKKVlaJdWBIqcCWhK9dY825MePrCEj3s8c6K /E9VD1lyCJHcKg79j82TYXvN83fKK4xE2O1z4/+gGHKRdeldqJ/gQM0XK6m3NirVq9RS +3vg== 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=bhRnUTD1xu2itKmWSn3uPQ8AOD0EU3W6g5Vk2gTnsog=; b=CEoplV5XXL/L/Et5famwGVHy7ud5BRBRAh8IMcEPUUYEyz5vDmwZSPn3PiF4r7/CgB yW3QvpwCTcudS2X1KuabPsrvYVfJj5ucI230CwiNPt0xa3h+W45t1FPR7HId9GRL/jA8 ZWQ1Rfym5VHJYL9QIM4eLESS31w/gchBW3T8ld4cV9dWukIGB4pVaKRaqTQLMZXPgy6w j9/9Bs4M26m6JxAmXaQup3NR9q6ASuCNj7TPd75R4GT7Nhf5dpXD6hQ/9HarzxAn8Yzh IaIUU1peTwnNDzcXOVysF2pu7vmAS90akrtPXeJSmMjJebayWmoc/NzsuY1hM350xZXJ 4Heg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M24ObXQ5; 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 g17si13925117ejr.328.2020.11.03.06.06.20; Tue, 03 Nov 2020 06:06:43 -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=M24ObXQ5; 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 S1729358AbgKCOEv (ORCPT + 99 others); Tue, 3 Nov 2020 09:04:51 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:43857 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729432AbgKCOEB (ORCPT ); Tue, 3 Nov 2020 09:04:01 -0500 X-UUID: e74818044ead4c7fa295b06134707924-20201103 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=bhRnUTD1xu2itKmWSn3uPQ8AOD0EU3W6g5Vk2gTnsog=; b=M24ObXQ5CD6jDsnzqejx95O9k6+44puG5qPRrd7A4MkNX1SL/+hnArNJ04XAsJgxD0UEZoGO0u4QApOlct7z50bXKxDLNQ931wM8DmLdXu9zIa6Ll8i3NyLdHTxRF2oSEErvjrBDnaRWFdGwXo4llB2/L8LMUrSe9XolbhWLVlM=; X-UUID: e74818044ead4c7fa295b06134707924-20201103 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 1008270133; Tue, 03 Nov 2020 22:03:48 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Nov 2020 22:03:47 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 3 Nov 2020 22:03:46 +0800 Message-ID: <1604412227.13152.11.camel@mtkswgap22> Subject: Re: [PATCH v1 1/2] scsi: ufs: Fix unbalanced scsi_block_reqs_cnt caused by ufshcd_hold() From: Stanley Chu To: Can Guo CC: , , , , , , , , "Alim Akhtar" , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , "Bart Van Assche" , open list Date: Tue, 3 Nov 2020 22:03:47 +0800 In-Reply-To: <09c5d4d31a0bd9bed99815cfbf51aaad@codeaurora.org> References: <1604384682-15837-1-git-send-email-cang@codeaurora.org> <1604384682-15837-2-git-send-email-cang@codeaurora.org> <1604387262.13152.2.camel@mtkswgap22> <09c5d4d31a0bd9bed99815cfbf51aaad@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 SGkgQ2FuLA0KDQpPbiBUdWUsIDIwMjAtMTEtMDMgYXQgM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