Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp126919ybm; Tue, 26 May 2020 12:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQSYBR4PMbUNNAhnHWI0GAmZxllL3p087xEQs8f49WM/NCvpSuHnkTBCEoXRgsxImwydo3 X-Received: by 2002:a17:906:4088:: with SMTP id u8mr2629842ejj.500.1590521204846; Tue, 26 May 2020 12:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590521204; cv=none; d=google.com; s=arc-20160816; b=N1AOQx47gOoJJIygYpEw1vUvVRgelTa+s5Y3/Ko/NaxOXRIVGB+nw0Lq7lCYCA/nT5 vjUhkWMo07RDZIOysSaIWni8GchdpdqawAV5XROlurBD59VgO7o8KV0/a4IhN7GHH1os F3x6rGOOM3x9PNtckqaS0Tu1ZJqT3QE+OazmcvO3NHILhQ61RQE9DTEOAdzpiRBvJ9/v Gdx4mboClz+3jyNBuKRkCtR7VM65rIOPzIz96aEVeJWQeDKp5rsJfFOyW68kRulQhAz8 79JavJXc5gUP46tjM5DRrQx3ELB3TNGu3QW3ToYYc1nKvUB7ILY7xQLrjv0Aext07cN6 GiCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=UF0b9vzgjoGA/TxDHjFty03aH3x5lf3r1PDB0hOx0YY=; b=uo0RL7MWEyMNwPv1MnnYWY+MEgZEaXMf7yytfA46JRBXa0T1xZewGgCICOta7Vw1Ha GAcSFjvfggtf3yySCLglETUOdjNxwlufywpWb28x7o18zXjLH6w91SBcAAJrY1mrDrz/ m8hXorlZ1GSYFbmuIxsuxQI37ZWaq76zr+8BadZ/pAi3d2UCjh8OJQ4eCLU4ey1o07xf wnUGRXk1XRehTlsuZpqSy5IT4df2wqibhQcbWe2rQhCD1JzU5519uqhPK0J/R2nCiK2R Vq1Grl2PZGTJyVO4LFK4Cx5T59Z6zNKMTfEe1dsn3QVtba4Rlu1pemdFSP+6M+cBTADi NvJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b="W/CDq0sq"; 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=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si388849eda.268.2020.05.26.12.26.21; Tue, 26 May 2020 12:26:44 -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=@dell.com header.s=smtpout1 header.b="W/CDq0sq"; 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=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404501AbgEZTXj (ORCPT + 99 others); Tue, 26 May 2020 15:23:39 -0400 Received: from mx0a-00154904.pphosted.com ([148.163.133.20]:34624 "EHLO mx0a-00154904.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404494AbgEZTXh (ORCPT ); Tue, 26 May 2020 15:23:37 -0400 Received: from pps.filterd (m0170389.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04QJGl8P013259; Tue, 26 May 2020 15:23:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=UF0b9vzgjoGA/TxDHjFty03aH3x5lf3r1PDB0hOx0YY=; b=W/CDq0sqoSOSUtm24RwBTq3QE0cKxHFzk26/nzX9xd96zjRii0vyhURpG09lEUGsOz/s TPT8aSxMluerBQIj/qoHOmKtE97rzTweBxF6jOke/7P2dRhmxEfcRN3NJi+Q3pmAaSuw juLtwERKo7HvAXyoS2nOmwlq2nmdPtAOjdwYjkykp13RN2HTTJakjrvAUhz/fQw94gyC IEFWZnvvHG5TG813KZLbs/I9HakbGOyViDHcrrvrdBcgCHtpx3TaseiOH2AxfPx4AWBU HwJZbycI1Tn8QmgVSPhvoZSTE4+FP3WvR0i6bjCI+nPx3EqEr5cpYaFUpk8ASexm6sQf pg== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0a-00154904.pphosted.com with ESMTP id 316yukghrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 May 2020 15:23:36 -0400 Received: from pps.filterd (m0134746.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04QJIGD9085892; Tue, 26 May 2020 15:23:36 -0400 Received: from ausc60pc101.us.dell.com (ausc60pc101.us.dell.com [143.166.85.206]) by mx0a-00154901.pphosted.com with ESMTP id 318u1nkqwv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 May 2020 15:23:36 -0400 X-LoopCount0: from 10.166.132.133 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="1559551251" From: To: , , , CC: , , , , , Subject: RE: [PATCH] tpm: Revert "tpm: fix invalid locking in NONBLOCKING mode" Thread-Topic: [PATCH] tpm: Revert "tpm: fix invalid locking in NONBLOCKING mode" Thread-Index: AQHWM4wIzxc0OpiDwkyMUhr0qx5qZ6i7EGkA//+sw5A= Date: Tue, 26 May 2020 19:23:33 +0000 Message-ID: References: <20200526183213.20720-1-mario.limonciello@dell.com> <1590520454.11810.40.camel@HansenPartnership.com> In-Reply-To: <1590520454.11810.40.camel@HansenPartnership.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Mario_Limonciello@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2020-05-26T19:21:31.0930081Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_ActionId=8768ed6e-ec87-4f22-bbd6-37850e26d1a1; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [143.166.24.60] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-05-26_02:2020-05-26,2020-05-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 cotscore=-2147483648 mlxlogscore=999 lowpriorityscore=0 bulkscore=0 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 impostorscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005260149 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005260149 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBPbiBUdWUsIDIwMjAtMDUtMjYgYXQgMTM6MzIgLTA1MDAsIE1hcmlvIExpbW9uY2llbGxvIHdy b3RlOg0KPiA+IFRoaXMgcmV2ZXJ0cyBjb21taXQgZDIzZDEyNDg0MzA3YjQwZWVhNTQ5YjhhODU4 ZjVmZmZhZDkxMzg5Ny4NCj4gPg0KPiA+IFRoaXMgY29tbWl0IGhhcyBjYXVzZWQgcmVncmVzc2lv bnMgZm9yIHRoZSBYUFMgOTU2MCBjb250YWluaW5nDQo+ID4gYSBOdXZvdG9uIFRQTS4NCj4gDQo+ IFByZXN1bWFibHkgdGhpcyBpcyB1c2luZyB0aGUgdGlzIGRyaXZlcj8NCg0KQ29ycmVjdC4NCg0K PiANCj4gPiBBcyBtZW50aW9uZWQgYnkgdGhlIHJlcG9ydGVyIGFsbCBUUE0yIGNvbW1hbmRzIGFy ZSBmYWlsaW5nIHdpdGg6DQo+ID4gICBFUlJPUjp0Y3RpOnNyYy90c3MyLXRjdGkvdGN0aS1kZXZp Y2UuYzoyOTA6dGN0aV9kZXZpY2VfcmVjZWl2ZSgpDQo+ID4gICBGYWlsZWQgdG8gcmVhZCByZXNw b25zZSBmcm9tIGZkIDMsIGdvdCBlcnJubyAxOiBPcGVyYXRpb24gbm90DQo+ID4gcGVybWl0dGVk DQo+ID4NCj4gPiBUaGUgcmVwb3J0ZXIgYmlzZWN0ZWQgdGhpcyBpc3N1ZSBiYWNrIHRvIHRoaXMg Y29tbWl0IHdoaWNoIHdhcw0KPiA+IGJhY2twb3J0ZWQgdG8gc3RhYmxlIGFzIGNvbW1pdCA0ZDZl YmM0Lg0KPiANCj4gSSB0aGluayB0aGUgcHJvYmxlbSBpcyByZXF1ZXN0X2xvY2FsaXR5IC4uLiBm b3Igc29tZSBpbmV4cG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