Received: by 10.223.185.116 with SMTP id b49csp2596598wrg; Mon, 5 Mar 2018 05:47:01 -0800 (PST) X-Google-Smtp-Source: AG47ELu7SIbkM7YEVM/hK6dW/At09+9208/96YW6ti4A0D2PrqyexUexDK08hrc00yZDoSGayxgZ X-Received: by 10.101.89.74 with SMTP id g10mr12279273pgu.415.1520257621536; Mon, 05 Mar 2018 05:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520257621; cv=none; d=google.com; s=arc-20160816; b=DkmkWXVyUxKwV0OhFyHSwU3Gy5PrDjwnz93GTjwNTCM4g+5FcRvkrW9LdXeAEl0AOm BfZ66r5S+kpkM5Cg5cXAG1RahRtJ0KFkR/zYh4IvPPLma/IY+OCs+tZ1jeliRsITucbz szjtl+1mznJnVOxsQ+GaWhFJpJcG8acM6g+lbJpcHuk868b6+Ue0bcmZuCSktwNhWFqm aRe/CdqTFIil7w1xBsTGkXFRX8Piwm1oUxvOAp9ifX9eJU+kOs1JCCdtJQ6wHR5ip49I Pc7dBW612uKOKx+WFqkz4ljctlfvqZ60HBVzzx8sAR+Ciojr9HIkQvte70AVtyuwhky3 hXng== 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=OKeX8iDthK3oH/A8Aln1bRYlYNuzF7FwmvGw8mLc7js=; b=h36i3ZLB6WH1FM97cJV7goqETVfkBe/vjCWoHdwFV6rS+sBnPZEKb1q361aXKjT4S+ yFKr7or0nqLs1RVyu1vTlg6ZG5/pSmXDdwpgSXbJu9g/Abf3Yb226xPRVZgVqwpzyFF2 PdA8lQomqxxiBQeCWteSUc1liHOl+zqw+XQ/oqJq5mxmuad+vkvoRb1ERAgeHubeN0FZ tUfO9YQ6SnbqW8ix5ATnf1D+6DFaSUJQKwNWCFnT1yEZrtfRW5MFFvmnw1hhYgGrXVsr fJikGPVLN5AWGbfun7nxNv+9jCXwTRJDf2d9ULpg/eqJU03vxcqr57l9rEItUhYYGso4 qQqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=Hm6zAr2g; 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 p1-v6si9413959plb.760.2018.03.05.05.46.46; Mon, 05 Mar 2018 05:47:01 -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=Hm6zAr2g; 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 S934488AbeCELZc (ORCPT + 99 others); Mon, 5 Mar 2018 06:25:32 -0500 Received: from mail-by2nam01on0069.outbound.protection.outlook.com ([104.47.34.69]:61001 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933983AbeCELZ0 (ORCPT ); Mon, 5 Mar 2018 06:25:26 -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=OKeX8iDthK3oH/A8Aln1bRYlYNuzF7FwmvGw8mLc7js=; b=Hm6zAr2gFFKWeU+/DL+pgnCUnHB89eqkWuYFwcjiVTmKiXxO7wCeC7oFtmH4N/VeiIU2C1t7alJyltmFoUAiONCT9PUIWo/iYekZVlqQESwueFVZsrpbp2/Y87aje/3onqckk1Bg/e+MXkjjn/ONwdsOWTJ258IwfohhA5z/pe4= Received: from BLUPR12MB0449.namprd12.prod.outlook.com (10.162.92.142) by BLUPR12MB0433.namprd12.prod.outlook.com (10.162.92.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.548.13; Mon, 5 Mar 2018 11:25: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 11:25:23 +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/OMzPYEJ7qO5evoAgAfSfxCAADo4gIAAACZg Date: Mon, 5 Mar 2018 11:25:23 +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;BLUPR12MB0433;7:QE/wszU6zkDh+xcfswHcFHb565jtEgJ6DsGQBBdp3JYZAgmL1A2QF0HI3/nGiQA0spmvYq0caZwqu4+11pT6aKiuMphax5lTTSHfk7k6X/K0+QzHIbijX10JKe2Ufz4Vk3oh+JC/oczXoXIknvefCGqnMccG2OsopuKVFun5YbhM7aKFXRNP7SCAJFwqQyCGHLpvFU5klLY8BvUzbOaib0xOtm7Gp0SsziMuwbCTbGxTjvPnngO3AYUIzt7wFrdz;20:VWyMxMj8TdIQtVP2y3X+Ov2IwW2+4DABnymXllfUHEZCWnattYZ1FtB9xCpL3krqHP7wd3AIxyGdWZfFLhL3gXlAor9tl/cHKkxa0R9VZbP014afbgG/WgGRBC6QeNQxUE040ko2/UMkDHzIJ3IrCoad9EvU/pDXJdqRAcnFMPAek4qlaqI9QUVH/eXCO4Fvge81T/B3pMVhazXIH2berFz/EdyPGMCUCtdiYUhWjmHXBSiWy1u5BnvIVnqiDBHP x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(39860400002)(39380400002)(396003)(346002)(366004)(376002)(199004)(189003)(13464003)(229853002)(9686003)(55016002)(105586002)(81166006)(81156014)(6306002)(8936002)(7736002)(478600001)(6246003)(53936002)(33656002)(66066001)(74316002)(5660300001)(2950100002)(86362001)(305945005)(6116002)(3846002)(966005)(2900100001)(106356001)(72206003)(8676002)(14454004)(2201001)(25786009)(3660700001)(110136005)(316002)(102836004)(6506007)(53546011)(26005)(99286004)(76176011)(3280700002)(7696005)(59450400001)(2501003)(5250100002)(93886005)(97736004)(2906002)(6436002)(68736007);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR12MB0433;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: 4cfae22a-e3d2-43f7-b855-08d5828bc978 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:BLUPR12MB0433; x-ms-traffictypediagnostic: BLUPR12MB0433: 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)(10201501046)(3231220)(944501244)(52105095)(3002001)(93006095)(93001095)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:BLUPR12MB0433;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0433; x-forefront-prvs: 06022AA85F received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bEBQHjfryjHaHlonBGZi8cxeAXnLHMnonW4WHp4dYBKGeqibSKhoZ7rAVTIFi6YkPv7oijwq9s25E7ZiMykwymbA4qRXUVtFgseic1Smwk7cSu6e7cmLvjCMe4cjDmrItbbdCusPHCQtMuFjH7cZX1EXShBiMK+54clwjsznhrZn6AczGyiiRv2Xg/R9Gs/Ts/tRbWX7JkDObmstEAq7tpiNab2B6GRAdRWCZjBIBJ3mrHxDfaCN689ShgJmP2hlyhX92x7zy+A+p/qOQ6MlkcULIaNBEB2U+XKNw5377locmjJDpauj8prokZMW9baarAN6WFJEItIncmZ12n5XDw== 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: 4cfae22a-e3d2-43f7-b855-08d5828bc978 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2018 11:25:23.3709 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0433 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QW5kIGJ5IHRoZSB3YXksIEkgYWRkICJpZiAoc3RhZ2VkIT1OVUx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