From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.4 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE316C433E0 for ; Tue, 19 Jan 2021 01:31:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6CBA323100 for ; Tue, 19 Jan 2021 01:31:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CBA323100 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B049E6B0273; Mon, 18 Jan 2021 20:31:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A8A7E6B0275; Mon, 18 Jan 2021 20:31:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A0916B0276; Mon, 18 Jan 2021 20:31:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 840CD6B0273 for ; Mon, 18 Jan 2021 20:31:15 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 4AE751EE6 for ; Tue, 19 Jan 2021 01:31:15 +0000 (UTC) X-FDA: 77720796510.29.shop98_62027ee2754d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 2F6BE1808736F for ; Tue, 19 Jan 2021 01:31:15 +0000 (UTC) X-HE-Tag: shop98_62027ee2754d X-Filterd-Recvd-Size: 3247 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Tue, 19 Jan 2021 01:31:14 +0000 (UTC) Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DKWL3603sz7X6N; Tue, 19 Jan 2021 09:30:03 +0800 (CST) Received: from [127.0.0.1] (10.40.188.144) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Tue, 19 Jan 2021 09:31:01 +0800 Subject: Re: [RFC mm/zswap 0/2] Fix the compatibility of zsmalloc and zswap From: "tiantao (H)" To: Vitaly Wool , Tian Tao CC: Seth Jennings , Dan Streetman , Andrew Morton , Barry Song , Linux-MM , Mike Galbraith , Sebastian Andrzej Siewior References: <1608894171-54174-1-git-send-email-tiantao6@hisilicon.com> <16191f34-023e-d1a8-17c6-792e4514a3d7@huawei.com> Message-ID: <02c4d8df-da4f-e4b5-6a10-05e5f51ed6e7@huawei.com> Date: Tue, 19 Jan 2021 09:31:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <16191f34-023e-d1a8-17c6-792e4514a3d7@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed X-Originating-IP: [10.40.188.144] X-CFilter-Loop: Reflected Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: =E5=9C=A8 2021/1/15 9:17, tiantao (H) =E5=86=99=E9=81=93: > > =E5=9C=A8 2021/1/15 2:46, Vitaly Wool =E5=86=99=E9=81=93: >> On Fri, Dec 25, 2020 at 12:02 PM Tian Tao =20 >> wrote: >>> patch #1 add a flag to zpool, then zswap used to determine if zpool >>> drivers such as zbud/z3fold/zsmalloc whether can sleep in atoimc=20 >>> context. >>> patch #2 set flag sleep_mapped to true indicates that zbud/z3fold can >>> sleep in atomic context. zsmalloc didin't support sleep in atomic=20 >>> context, >>> so not set that flag to true. >>> >>> Tian Tao (2): >>> =C2=A0=C2=A0 mm/zswap: add the flag can_sleep_mapped >>> =C2=A0=C2=A0 mm: set the sleep_mapped to true for zbud and z3fold >>> >>> =C2=A0 include/linux/zpool.h |=C2=A0 3 +++ >>> =C2=A0 mm/z3fold.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 |=C2=A0 1 + >>> =C2=A0 mm/zbud.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0 1 + >>> =C2=A0 mm/zpool.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 | 13 +++++++++++++ >>> =C2=A0 mm/zswap.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 | 50=20 >>> +++++++++++++++++++++++++++++++++++++++++++++----- >>> =C2=A0 5 files changed, 63 insertions(+), 5 deletions(-) >> Haven't been able to actually test these yet, but looks good to me so=20 >> far, so > I have tested that this patch works well=EF=BC=8Cit's better to double = check=20 > by you or someone else. Is there anyone else testing this patch? Can I send an official patch out? >> >> Reviewed-by: Vitaly Wool >> >> Please wait a bit for Mike, Sebastian or me to actually test this. >> Also, keep them CC'd explicitly if you are to come up with a new >> version for some reason. >> >> Best regards, >> =C2=A0=C2=A0=C2=A0 Vitaly >> . >> > > . >