Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1172682imb; Sat, 2 Mar 2019 05:35:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyiCofcBbV7bKO1MWMPbLW5JdVQ8uh1OT9HatcsLl7fgmWW9C7wz8egmQ8SPKL38SXz9KkY X-Received: by 2002:a17:902:a5c9:: with SMTP id t9mr10556074plq.196.1551533709708; Sat, 02 Mar 2019 05:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551533709; cv=none; d=google.com; s=arc-20160816; b=KZFoEEKy+noZJEHImhBFJEbPLVJ93SX8m8P/efSunTNHaNPRqZH1uqrFH8q78DUkou 7A+Ow41RYjr9ICe28/WPsX9cg4977KFVO2bqKQuoj/z6tCinNR8EuCaXHIxIOzQbsxXg Fy9c/ngcKJXQ+f/wwt/h0vrGI7tNNO2rQgY3zumr4le9J2/jkoYBPzemOHGXX2wyU0i2 o4VBp/Bsr3BhiQweOa+dhd/PD7r3AI5HE4oc2oRl/lY20Wl0h/wbK/UUShn7SuESKs/2 nSF97Koo/GDYLdg9R9yVG0b5e/GQa9rzyZOqp8VACylYwj53zqJgXt9sVbMm/W3mufaE JtWA== 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:dkim-signature; bh=qmvbEFYTsgvtV+XBJtBVXikgzmsHwl2ddbgWFKVFPCo=; b=GtQkMJu6ZlEp698BLByRBbKcZx3bDLsoNuJZrFXoMWpIu3bpRnrpgptYRet481N/SD 2V6sbw9uIGYdyha2C4f1kyHWRRW9qvJi2STlbhqrDlie+EoeDPBNPhQpdbnclTUL+eu8 Vp4D1RQJ5gb+Rbq1NlyFgBmTEYsF80pNIhSK4NngtLftFuJm4WekBVdp4krnV2ReKy0N /1MeuA/GXioFl20QpYbNq5+oZZTky0OO2WedC98wj3jpOE0z7h5WA0wIwmweO6fm4GMZ 1RER9WMuFmxF0Sq7M1RZ5z5alhu9Tcc9+7fDMdfDPwa9jWYeD9LEoROuN2rHV39PLfPK gagg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=K2H7Ksj8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si722540pla.112.2019.03.02.05.34.21; Sat, 02 Mar 2019 05:35:09 -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=@nxp.com header.s=selector1 header.b=K2H7Ksj8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbfCBNcL (ORCPT + 99 others); Sat, 2 Mar 2019 08:32:11 -0500 Received: from mail-eopbgr50041.outbound.protection.outlook.com ([40.107.5.41]:44103 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726065AbfCBNcK (ORCPT ); Sat, 2 Mar 2019 08:32:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qmvbEFYTsgvtV+XBJtBVXikgzmsHwl2ddbgWFKVFPCo=; b=K2H7Ksj82aGEgdV6a/OY1JJbQ1mJ6SATR+LmSwRIsSaz03OjURRTtQTBG6/861oREgPT0bWHEaQUFP12ZZNIpESXc4gjUnvbZXYljqSm1wr4evEumjHprxph85tcyy3x5lfRdxU0j3Bn15VsOKHU5M7BWRsKIk48Y/mSfvXupcc= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB3954.eurprd04.prod.outlook.com (52.134.124.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.16; Sat, 2 Mar 2019 13:32:04 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185%5]) with mapi id 15.20.1665.019; Sat, 2 Mar 2019 13:32:04 +0000 From: Peng Fan To: Dennis Zhou , Tejun Heo , Christoph Lameter CC: Vlad Buslov , "kernel-team@fb.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 02/12] percpu: do not search past bitmap when allocating an area Thread-Topic: [PATCH 02/12] percpu: do not search past bitmap when allocating an area Thread-Index: AQHUzwvyQrNOCAGGWES+BJaA5orrJqX4VbWg Date: Sat, 2 Mar 2019 13:32:04 +0000 Message-ID: References: <20190228021839.55779-1-dennis@kernel.org> <20190228021839.55779-3-dennis@kernel.org> In-Reply-To: <20190228021839.55779-3-dennis@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2ad9fa80-996a-44d1-e7c7-08d69f1375c1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB3954; x-ms-traffictypediagnostic: AM0PR04MB3954: x-microsoft-exchange-diagnostics: =?gb2312?B?MTtBTTBQUjA0TUIzOTU0OzIzOnY5RFVjOUdkQVhHSkRnTTQ0akt0a0U0MURI?= =?gb2312?B?UUNMWlRXZjV4RlZxSWRMNi9RWXU4cTltQ1hhQUdUUzJOVXhkZHdOUnhRNnl2?= =?gb2312?B?UERFYnc1ZmtsbFF2amJpYWd4WTErbGoydm8vTEo0OGpUaVpEY09MSnN2S0h2?= =?gb2312?B?dzZUaE4xckhwWFBubEZkNzduOHlGRWM1a2g3c05obFFmb0l3ckw1dVhibmtN?= =?gb2312?B?MTNLMEpwZVB5NjhuVVg3cGJNVFQvTktvSVk0MHg4dVBBVnZRVVFDMTQwTUw4?= =?gb2312?B?ZmVycG9veGpxYi9ncnFkRTB5clRaLy94TE1OMW5lNFByUG0xWjdzdmx4bjRQ?= =?gb2312?B?dCtCV2lEaUVvdzkvait0blM4RHJQQ2wvcWRFWGlWRDliR0NlNzh1SGZGaVl4?= =?gb2312?B?bDdGS29BdTFucnpkczZ6TVA0b001S21CL1ptbEpwQm1KT2xQOG00cVcxcTN3?= =?gb2312?B?cHB1ZmlmdWxrUk0wVHFVQm1xWXk5MTBZMGlBQlVIN0NFdGxIVS9TTTlCOVZv?= =?gb2312?B?MTJ1dVNEbTNzVDZIM3JkcHhFdkZUa2d1M2xtZXg0WUhKcG8wZGV5VUo5czZH?= =?gb2312?B?SEJQZEFWbm1TYTlXWUZtdDAvWUdBRjA5eWVUYmFwbk5zUzhuZzQ0dGxvWkdE?= =?gb2312?B?enpsWldOK29JeWhiMTF5amNBdDdNK3RTU0hYRmd1YUVpR0ltV0ttVHIzazZ3?= =?gb2312?B?aklOZ0NJUklMRUUzMWpVYzdMSk05YWZoSEo5N2tqMVFldFVYb0Nndko1RXYw?= =?gb2312?B?WjA4VmJNTEZXVVozQzFiUzNtK2hmdFJ4TVpBcWhuZnV2Q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UWgyeFJMNU5wendnRStUUjBQL1ljNlJq?= =?gb2312?B?bjRISXZRMmVKaS9kTjIwQT09?= x-microsoft-antispam-prvs: x-forefront-prvs: 09645BAC66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(13464003)(6116002)(4326008)(3846002)(53936002)(33656002)(14454004)(106356001)(6436002)(99286004)(105586002)(229853002)(97736004)(7736002)(55016002)(54906003)(478600001)(74316002)(6246003)(66066001)(9686003)(2906002)(305945005)(476003)(446003)(11346002)(8936002)(486006)(44832011)(86362001)(53546011)(186003)(26005)(316002)(68736007)(256004)(76176011)(52536013)(71200400001)(71190400001)(25786009)(14444005)(7696005)(110136005)(102836004)(8676002)(81166006)(81156014)(6506007)(5660300002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB3954;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IUErIgxjskzL4D/Dx4w0bqGs7E9LsjEnt7E3LNO8b/ED+N/sMhWPezMOdc1ixNX8PKOU5WWQ2cZvuvaOeg269lMLiJBHve8m2ScBtqcbR2CWHmKv1YHB8gDIySD9Ey1PUwICrRFp/D4AZ0tcx4AS8mJgHV8RydDtlm2vj6P+CM3m3oEVoAw2c7TNdOPkfaYnL99sSs4ueU2cewFSWqCe55GiJcL+SyIJk/33ecSRw+SPfDntedef8dZQ3IU7zjA0hvF9UOz5UW+Fub4/xWkcrgizaFYBK1T9I6qf7CTm+YswKW4n8DVVzVSU8gb19sG+Cdpr1+lrl8ujREUjCXtfrLr7jhKYh3WT3nJ47NRWjG9sOR9MQBVNasrlRU94jLvgz875rZC4fjFIWqsryGOirjxM80VueQFvJqHxoX/8LVI= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ad9fa80-996a-44d1-e7c7-08d69f1375c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2019 13:32:04.7230 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB3954 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRGVubmlzLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IG93bmVy LWxpbnV4LW1tQGt2YWNrLm9yZyBbbWFpbHRvOm93bmVyLWxpbnV4LW1tQGt2YWNrLm9yZ10gT24N Cj4gQmVoYWxmIE9mIERlbm5pcyBaaG91DQo+IFNlbnQ6IDIwMTnE6jLUwjI4yNUgMTA6MTgNCj4g VG86IERlbm5pcyBaaG91IDxkZW5uaXNAa2VybmVsLm9yZz47IFRlanVuIEhlbyA8dGpAa2VybmVs Lm9yZz47IENocmlzdG9waA0KPiBMYW1ldGVyIDxjbEBsaW51eC5jb20+DQo+IENjOiBWbGFkIEJ1 c2xvdiA8dmxhZGJ1QG1lbGxhbm94LmNvbT47IGtlcm5lbC10ZWFtQGZiLmNvbTsNCj4gbGludXgt bW1Aa3ZhY2sub3JnOyBsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnDQo+IFN1YmplY3Q6IFtQ QVRDSCAwMi8xMl0gcGVyY3B1OiBkbyBub3Qgc2VhcmNoIHBhc3QgYml0bWFwIHdoZW4gYWxsb2Nh dGluZyBhbg0KPiBhcmVhDQo+IA0KPiBwY3B1X2ZpbmRfYmxvY2tfZml0KCkgZ3VhcmFudGVlcyB0 aGF0IGEgZml0IGlzIGZvdW5kIHdp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