Received: by 10.223.185.116 with SMTP id b49csp2304182wrg; Sun, 4 Mar 2018 23:56:59 -0800 (PST) X-Google-Smtp-Source: AG47ELu6risuCsp40U17DBX2Z/JpyOv4ZPVb+jK/bEckq4FHEWVmun3xlQFNt84K+VUP4YIyn1Ky X-Received: by 2002:a17:902:b686:: with SMTP id c6-v6mr12290857pls.339.1520236619471; Sun, 04 Mar 2018 23:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520236619; cv=none; d=google.com; s=arc-20160816; b=EVU4Ly6R1M7TVMPX0xRk3Vu0i9vAnQc3zT9jF+BlQOA8mq440IuAS97ZEXxe7gG+7s VEf6wFaXd/dWoGyIvzfedEsgQb+uyE+wfgEFruRLf5FXx7VDXphVChm6sgdz1zUmUfst 6SKoHZ2dsOIKQjvKJVi+7c/yb6I0IJSAuBhNr7/MwJWmlxCAJ8lwsN/LtXOld2dpepQl FvQbTx7+FYNyDQeJiu3663D9DG/ZQYgKACdBo4TeCjbStlnRvpBTJdFDu91QJdCpGdC+ qRn3RVXbeFd8k9SZ/qhWvPxf3f7Tx/esj/qvDZU6k2QCPmnCAcmk+CAlMtjAEMNRZ4b7 z0EQ== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature :arc-authentication-results; bh=cdWDLVYfGUpZ6cynfX4uyhclkhzVwqt3L6MP0z7fnxs=; b=AvC9J7AHBQmaoRrnEn2qFQucH/RIZRPDBz4hUgmxlnyVaKYWe1UL3E35g6Rb53Z7e7 NKgZPg+kShM997MV0UI0CBOCTaIyklE0oXIZyw2m5H0/a9DU85KH0Im5tvDwW6N325Ie 39m7Oi5eB70SPbrYsKsSEMfPfpm/NZKWkk2/I98RDZzbq4iz4qjswFwGdNacyzv+lOZi AChpv2s7ZcK674iA3Y2UW0oBLIxq8pSrGFKss5hEzzunkwQpGA/32mlobG5KWLNXRYHt MeUmTytHJ46omEu/34J1MWfadvAk1BDitxvlAdxe4bnZdKq8sx+odMUzZAYI/qPNX5Ty Cd9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=TATvuvb5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si9854133pfk.124.2018.03.04.23.56.45; Sun, 04 Mar 2018 23:56:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=TATvuvb5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933358AbeCEHzb (ORCPT + 99 others); Mon, 5 Mar 2018 02:55:31 -0500 Received: from mail-bl2nam02on0056.outbound.protection.outlook.com ([104.47.38.56]:7616 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933184AbeCEHz1 (ORCPT ); Mon, 5 Mar 2018 02:55:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cdWDLVYfGUpZ6cynfX4uyhclkhzVwqt3L6MP0z7fnxs=; b=TATvuvb57FoTqMUAjJDHGKwB0IrKfG7hDuQM+/RlRJU8FwXGdM/x22zTCsn0gqDXy7j2i9RZaLqjCXexGDzvOScFbnNDfSstYZM+jg/ZFK2Onz6UxczpFFs63iNvPU9qkL7zzERXxiS1cQaamYbkniYs1QfHImdh6ZsRVuILfJw= Received: from BLUPR12MB0449.namprd12.prod.outlook.com (10.162.92.142) by BLUPR12MB0723.namprd12.prod.outlook.com (10.163.218.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Mon, 5 Mar 2018 07:55:24 +0000 Received: from BLUPR12MB0449.namprd12.prod.outlook.com ([fe80::1dd0:2fee:6049:2a8d]) by BLUPR12MB0449.namprd12.prod.outlook.com ([fe80::1dd0:2fee:6049:2a8d%7]) with mapi id 15.20.0548.016; Mon, 5 Mar 2018 07:55:22 +0000 From: "Liu, Monk" To: "Koenig, Christian" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] dma-buf/reservation: shouldn't kfree staged when slot available Thread-Topic: [PATCH] dma-buf/reservation: shouldn't kfree staged when slot available Thread-Index: AQHTsGFsSC26PGMebEmm/OMzPYEJ7qO5evoAgAfSfxA= Date: Mon, 5 Mar 2018 07:55:22 +0000 Message-ID: References: <1519800242-2442-1-git-send-email-Monk.Liu@amd.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Monk.Liu@amd.com; x-originating-ip: [116.228.147.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BLUPR12MB0723;7:+D5J1AQ4wZTwluB1kdXggS9VFMuHns58RGX6o0KYuNm0cX21K0yD3glEppF1z49CuAhpIPbHXaNtiTg0w0GSVZ2VKiZZ5afEa/YnSTBUmxnlsy7Q4xb2ZrfX/ndecyC7EiKReVeoisQRfGa09lsCBZAJ/B1iKQg8ahudzW1PTa4XkZK2gvwb7jMnRIWCqaec8M5BkD0IQj1aWXQC+WcUxus3A+jg8IKQ4d/gs1/BEbAZKTqPUKjRj2hifhVBJXks;20:EULfu3t2xUiDlhrPxh+IDAd/wJDq0kgYmbfxs7N7X55wMeHQSbCYNILBg/ZpW6iffvLJpur/iQ4c/3E+jmZonksdEw4p7AFtYVR/TqMMrtSadZBJCmytwnu5uXFnBgQq0nhFfGqW9C8s43nOqrsgDOC68rQSmPtRQLJ2EmpGejWIT6fNid2XfnXQy9yxaYvX9zTkUoIxC4EfCpE0+/8Ga5HJzvQigXXzZtWUci/WIxH8NyBlNEzaf9dZgrkZA4cs x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39860400002)(366004)(39380400002)(13464003)(199004)(189003)(68736007)(6506007)(26005)(8936002)(5250100002)(25786009)(6116002)(2201001)(3846002)(33656002)(86362001)(74316002)(14454004)(229853002)(59450400001)(81166006)(8676002)(81156014)(102836004)(316002)(478600001)(7736002)(305945005)(2501003)(6246003)(53546011)(72206003)(110136005)(3280700002)(53936002)(7696005)(76176011)(55016002)(2950100002)(6436002)(3660700001)(2906002)(99286004)(106356001)(9686003)(105586002)(5660300001)(66066001)(2900100001)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR12MB0723;H:BLUPR12MB0449.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 8c1f1243-ab82-4c5e-8752-08d5826e72e4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:BLUPR12MB0723; x-ms-traffictypediagnostic: BLUPR12MB0723: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(85827821059158)(767451399110)(217544274631240)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3231220)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:BLUPR12MB0723;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0723; x-forefront-prvs: 06022AA85F received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Bnpamznta2K/UZQCw4GD2wY+glynHnT6SGU0wOeCqPbc3CZl/FefX9PJo46IFe38hkK05SMaFVPg5MhHkD44E2YydLOmwmLJF/7K2e3JITVJ98ctLOi1LG/m8ussXOPLpAkQ+54VSsD/6kydbUs177YbQnvITBSMg076Pxct1zNLjyZ63/LVgwOUb+uA8xQv5atOWopFk8sOVrx0zPaciPaCiZExgTKr8S08CUHpY4Rv9H1giqu2OmibUVvXE2ZQ4RLEsx3iojuDy4nG0EbE6QHNQdLVoITtLwJXKne6uWwMqqp782T+2o4kAtr5KQNP1dWcCJKnZhR2mi3nWjBYzQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c1f1243-ab82-4c5e-8752-08d5826e72e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2018 07:55:22.6774 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0723 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2hyaXN0aWFuDQoNCllvdSBhcmUgcmlnaHQgb24gdGhhd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