Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4474764pxu; Mon, 21 Dec 2020 13:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaQcKtuHmpyNFRRCT/8efzaB5z5eIJ2Z3yxxeIPMpnGhsGIn+MpduArXPqaUuOKiuOK3M3 X-Received: by 2002:a17:907:20dc:: with SMTP id qq28mr17109923ejb.403.1608586313712; Mon, 21 Dec 2020 13:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608586313; cv=none; d=google.com; s=arc-20160816; b=PVyRfl1208SMiqCupfYjxsUY3/eccByR4MoMhLymh66GwOHWmXZrpTEkKhIeOHlaCD uUs2ESvZPug89DBq04nvVWzW0ZkJa406jjbhtWEk/TCuIWHiEH4l4u7giH0h1MookWen cQN0/rqcdaIPUH5cRPk/aZHZfkzl92my6lE/i7/9QWvADYICqFxSAE93pHatH/6lqjd9 V+uu4Cxxwi8l1lqIoAGyXqcXUSahi2EU38WnYspWnIBmkB2MwllfqMzohPSgl5zZcq/+ yzo8dR9X/zkBj9Xf8lECKWiZLYsYGk1bn5C3cPwfmp/8lFWuH327qSfxtYqTZrVrceiG XEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=Ho3XiKq/ITmjkc/IzeRQ5Gfnw8Zp8zkbHu3P1iVhi0k=; b=Pfdt3UslxWo7XnbmPoG/lVsW3cnbX1dh7ae7JB+/OrTPXImVnWNUXvLe+nJ80uFSlB 5G6PMviXpQlJ0itBHacoIRA66prGzIasTisou0EPnzEykZRtY4s5Z8XrARg9piDfgzKZ jzMsHFgk6FUAPLFjGclL9wCBZLAb3FYAZBsvyNlTCFzwGjm2D6qfehaP++xtjdKioU9h UJ8LFGbRVnQ1woMEwcbeLf2Xgkm5m4pywIG9sDLVqDkc/MddzpunoWO5TvsF6PHPlNJm U7Z1mPySALqo0QT4U+6FNBX5vEIJfukHHPJrnPvUMSszFTZeow7AqKpU8EDwZhqUYoY3 Zl1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si11559899edn.43.2020.12.21.13.31.30; Mon, 21 Dec 2020 13:31:53 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725899AbgLUVas (ORCPT + 99 others); Mon, 21 Dec 2020 16:30:48 -0500 Received: from szxga08-in.huawei.com ([45.249.212.255]:2341 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbgLUVas (ORCPT ); Mon, 21 Dec 2020 16:30:48 -0500 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4D0CJg134Jz13VGd; Tue, 22 Dec 2020 05:28:51 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.498.0; Tue, 22 Dec 2020 05:25:40 +0800 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Tue, 22 Dec 2020 05:25:41 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.2106.002; Tue, 22 Dec 2020 05:25:40 +0800 From: "Song Bao Hua (Barry Song)" To: Shakeel Butt CC: Vitaly Wool , Minchan Kim , Mike Galbraith , LKML , linux-mm , Sebastian Andrzej Siewior , NitinGupta , Sergey Senozhatsky , Andrew Morton Subject: RE: [PATCH] zsmalloc: do not use bit_spin_lock Thread-Topic: [PATCH] zsmalloc: do not use bit_spin_lock Thread-Index: AQHW1mZAeBjE5clI7UKUuMSOCQsyuqoBSTyAgAAghwCAAAhXgIAAhndA//+NyICAAIW5IA== Date: Mon, 21 Dec 2020 21:25:40 +0000 Message-ID: <8cc0e01fd03245a4994f2e0f54b264fa@hisilicon.com> References: <18669bd607ae9efbf4e00e36532c7aa167d0fa12.camel@gmx.de> <20201220002228.38697-1-vitaly.wool@konsulko.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.200.103] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogU2hha2VlbCBCdXR0IFtt YWlsdG86c2hha2VlbGJAZ29vZ2xlLmNvbV0NCj4gU2VudDogVHVlc2RheSwgRGVjZW1iZXIgMjIs IDIwMjAgMTA6MDMgQU0NCj4gVG86IFNvbmcgQmFvIEh1YSAoQmFycnkgU29uZykgPHNvbmcuYmFv Lmh1YUBoaXNpbGljb24uY29tPg0KPiBDYzogVml0YWx5IFdvb2wgPHZpdGFseS53b29sQGtvbnN1 bGtvLmNvbT47IE1pbmNoYW4gS2ltIDxtaW5jaGFuQGtlcm5lbC5vcmc+Ow0KPiBNaWtlIEdhbGJy YWl0aCA8ZWZ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