Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp304386pxb; Mon, 2 Nov 2020 23:11:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDWOOMBEzAzrpGJHo74Jcudq89AYpjAlVA0YLBTxWPw3tSm86MNnk3aWUDNsE8EJ2NqTJu X-Received: by 2002:a17:906:1f53:: with SMTP id d19mr18677878ejk.255.1604387507648; Mon, 02 Nov 2020 23:11:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604387507; cv=none; d=google.com; s=arc-20160816; b=G/gUOlL32u9Y9pOHHxa/4UOqah0IkVBgNbxfcRbEnm46evLKJPEMqtjlJ133g2d4H9 kCROBH1W4CnynGX1d90ew7FOdxeh4mrcSekIUB/lRKPPxPoVUFeN49pwKrf9e96o1Ahe UjO7uvwrF1/lv1Fao9y+8GOiFdi0vzx1/4ExE2FtzqhblMDzq30gEJUMLWytwVbAEyPw 6QneWKmQjVmrb+rOs56YmdiwrEScjhtu9KNbno2lKGnAMK8qkxCdWRVull2NzyI23uZQ 32Rd8rSD12NVngJIvxOXncVSkmL2helruma0Q4jmztXwukJeZ0lGt7WLefwkwKHVSFY+ gX3g== 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=xgZxM4bZdBoYMDGnpcKBnJHgKjg4eO6nDZKJOGIeWdo=; b=mguoyC9kzvApj2HI9KBedirrl7ReU7Ez/Ex+DMRUeFLpjk/jDu+I15HX8UifKWyiAm ww8KywByekkWOU3Kw97PbIlFK3vHumvV8wfWJ2t1BEo9R04pzMl+UHHAfjOfniEk5J6z ntsUY3V9NtPIIvjEfxXTOdi1L5M1CJ25bzRdgjN0UAk0yfKwfH/YNXi8T20CtMqX4ZB+ dsxtbGSA6YFE73LNLWUzl/dgfgltJmB8fRTiV/3vj9S4kk1WLM76NIx04Txm1b8ErnOI rEXtq7FRKO7zRR6P5KiOHN5Zw71Xxxcwpp0xYAM0gSPBAaDIBa4C9lKEZuyFwA+GiW+C ItXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PUtkyKF0; 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 18si13153803ejv.717.2020.11.02.23.11.24; Mon, 02 Nov 2020 23:11:47 -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=PUtkyKF0; 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 S1727529AbgKCHHr (ORCPT + 99 others); Tue, 3 Nov 2020 02:07:47 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:42291 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbgKCHHr (ORCPT ); Tue, 3 Nov 2020 02:07:47 -0500 X-UUID: 0cd27029a24f41bca58df90019b241ea-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=xgZxM4bZdBoYMDGnpcKBnJHgKjg4eO6nDZKJOGIeWdo=; b=PUtkyKF0b3dBSMtd3cT167RsJne4PCUmgNlL025Hyu28j28uMYl/OclqQ41hYONY4kq+3wA2lmY8+3x8wUTSnReKNs5F3a/nMvaxOe0Nm5iDiibf6qNZmuXhmxBCrO8bjfWI67gY1zU3Ip93FM4PoKC03BkETquvzoCe15viT3c=; X-UUID: 0cd27029a24f41bca58df90019b241ea-20201103 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.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 957126120; Tue, 03 Nov 2020 15:07:44 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Nov 2020 15:07:42 +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 15:07:42 +0800 Message-ID: <1604387262.13152.2.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 15:07:42 +0800 In-Reply-To: <1604384682-15837-2-git-send-email-cang@codeaurora.org> References: <1604384682-15837-1-git-send-email-cang@codeaurora.org> <1604384682-15837-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-TM-SNTS-SMTP: 295080CDDDD8E39A2ADF44384CB5E35A2D4E5055CC367A2FD534E280F511F3EC2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2FuLA0KDQpPbiBNb24sIDIwMjAt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