Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4696295imm; Mon, 17 Sep 2018 20:01:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqIPU2YOru+iiGd0QxWaIruYkFlNoOXFe7KPrYd5ADt6d6WlTKarb8A9bNQ+Ku2I7FR+eG X-Received: by 2002:a17:902:6ac5:: with SMTP id i5-v6mr27398155plt.232.1537239719852; Mon, 17 Sep 2018 20:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537239719; cv=none; d=google.com; s=arc-20160816; b=TXME/Bpm7VvRo6Q8Z/0/5v8bs0fSl9eK9+ymyxjNPkd8xcBwBVFpJ8BVauLKOgdyfd FwJeVzAYLxj7yWkCqWHxu2o8H58POF5NNr92abjhrG7GxlllnPQNVC0rWIWaIv6i+kOg xB73F5dxKvk3MHTLd29YkwM3nx5f+w4FscgzVqA99O8RQ6F8psSdkqdUyapUq0jNbpo7 eEGRo5FqWwlt18ljlPcRbpglTTaVehl0IMTTRT60dvP9QXNamGi8Gv21Srw4A4ZvPfcR ofgNdPhW3odw6hBT+8a6EXf88r4Hvtkr36IvRAiG6ZnfjekLKx8H23duUQF0CLmr3wye FhNA== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=91OyG6uQHSv3c9gZ37wK1Ny+SnryRZHQvAs3tZ9L5ec=; b=BhT/bI5XosSa6OnlKaWJ67t6ZyCEKDjckgrEXiVBSns6Kkef0dSkupNxQo58GAPbSU NTEg62DA3LRLLQQWqRY8nGPUdP4cKvPgc3Q+Pm7cjDWduNeYDA1+7cgAFfWjwUMy5R/Q ZRYOO8J1OzkXM36U3y721t4RmKoJRDNyHoNFj6HqiRrse70EP00cT5VMwZ71qH1ZSQCU CJ0jaBTP6SOhWZI2poRSPqSkNDpIaloTfXTymMwpo567X36X/v/bR2f8viL1oBUTTdaR dsy+Blf9P3Ei20uRUDBMs/GXX9UxsXsFI7Gty33BM6tjpkyaLp+OBKH44H2dij+aMs70 Nx7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 d128-v6si18681028pfc.211.2018.09.17.20.01.44; Mon, 17 Sep 2018 20:01:59 -0700 (PDT) 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; 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 S1728979AbeIRIbq (ORCPT + 99 others); Tue, 18 Sep 2018 04:31:46 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6421 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728720AbeIRIbq (ORCPT ); Tue, 18 Sep 2018 04:31:46 -0400 Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 81E23E1D9BF53; Tue, 18 Sep 2018 11:01:15 +0800 (CST) Received: from DGGEMM527-MBS.china.huawei.com ([169.254.5.129]) by DGGEMM405-HUB.china.huawei.com ([10.3.20.213]) with mapi id 14.03.0399.000; Tue, 18 Sep 2018 11:01:13 +0800 From: Nixiaoming To: Amir Goldstein , Steve Grubb CC: Jan Kara , linux-fsdevel , linux-kernel Subject: RE: [PATCH v2] fanotify reports the thread id of the event trigger Thread-Topic: [PATCH v2] fanotify reports the thread id of the event trigger Thread-Index: AQHUTpfuO8h5GU9em0yW7M1mbnoXxaT0GT8AgAE/CbA= Date: Tue, 18 Sep 2018 03:01:13 +0000 Message-ID: References: <20180917141950.111841-1-nixiaoming@huawei.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.57.88.168] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCBTZXAgMTcsIDIwMTggMTE6NTEgUE0gQW1pciBHb2xkc3RlaW4gPGFtaXI3M2lsQGdt YWlsLmNvbT4gd3JvdGU6DQo+T24gTW9uLCBTZXAgMTcsIDIwMTggYXQgNjowNSBQTSBuaXhpYW9t aW5nIDxuaXhpYW9taW5nQGh1YXdlaS5jb20+IHdyb3RlOg0KPj4NCj4+IEluIG9yZGVyIHRvIGlk ZW50aWZ5IHdoaWNoIHRocmVhZCB0cmlnZ2VyZWQgdGhlIGV2ZW50IGluIHRoZQ0KPj4gbXVsdGkt dGhyZWFkZWQgcHJvZ3JhbSwgYWRkIHRoZSBGQU5fRVZFTlRfSU5GT19USUQgdGFnIGluIGZhbm90 aWZ5X2luaXQNCj4NCj5BY2NvcmRpbmcgdG8gY29kZSBhbmQgbWFuIHBhZ2UgdGhpcyBpcyBhICdm bGFnJyBub3QgYSAndGFnJw0KPlBsZWFzZSBzdGljayB0byBleGlzdGluZyB0ZXJtaW5vbG9neS4N Cj4NClRoYW5rIHlvdSBmb3IgeW91ciBndWlkYW5jZSwgSSB3aWxsIGNvcnJlY3QgaXQgaW4gYSBs YXRlciBwYXRjaC4NCg0KPj4gdG8gc2VsZWN0IHdoZXRoZXIgdG8gcmVwb3J0IHRoZSBldmVudCBj cmVhdG9yJ3MgdGhyZWFkIGlkIGluZm9ybWF0aW9uLg0KPj4NCj4+IFNpZ25lZC1vZmYtYnk6IG5p eGlhb21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