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=-15.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 752ECC433DB for ; Fri, 15 Jan 2021 01:17:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 86DA422CBE for ; Fri, 15 Jan 2021 01:17:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86DA422CBE 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 C17388D0136; Thu, 14 Jan 2021 20:17:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC73C8D00F0; Thu, 14 Jan 2021 20:17:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADDFF8D0136; Thu, 14 Jan 2021 20:17:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0175.hostedemail.com [216.40.44.175]) by kanga.kvack.org (Postfix) with ESMTP id 9B7BA8D00F0 for ; Thu, 14 Jan 2021 20:17:42 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 61105181AF5C1 for ; Fri, 15 Jan 2021 01:17:42 +0000 (UTC) X-FDA: 77706247164.13.wave98_5d047382752b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 425A518140B80 for ; Fri, 15 Jan 2021 01:17:42 +0000 (UTC) X-HE-Tag: wave98_5d047382752b X-Filterd-Recvd-Size: 2953 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Fri, 15 Jan 2021 01:17:41 +0000 (UTC) Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DH3DX40W8zj5xR; Fri, 15 Jan 2021 09:16:44 +0800 (CST) Received: from [127.0.0.1] (10.40.188.144) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Fri, 15 Jan 2021 09:17:25 +0800 Subject: Re: [RFC mm/zswap 0/2] Fix the compatibility of zsmalloc and zswap 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> From: "tiantao (H)" Message-ID: <16191f34-023e-d1a8-17c6-792e4514a3d7@huawei.com> Date: Fri, 15 Jan 2021 09:17:25 +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: 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 2:46, Vitaly Wool =E5=86=99=E9=81=93: > On Fri, Dec 25, 2020 at 12:02 PM Tian Tao wrot= e: >> 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 conte= xt. >> patch #2 set flag sleep_mapped to true indicates that zbud/z3fold can >> sleep in atomic context. zsmalloc didin't support sleep in atomic cont= ext, >> so not set that flag to true. >> >> Tian Tao (2): >> mm/zswap: add the flag can_sleep_mapped >> mm: set the sleep_mapped to true for zbud and z3fold >> >> include/linux/zpool.h | 3 +++ >> mm/z3fold.c | 1 + >> mm/zbud.c | 1 + >> mm/zpool.c | 13 +++++++++++++ >> mm/zswap.c | 50 +++++++++++++++++++++++++++++++++++++++++= ++++----- >> 5 files changed, 63 insertions(+), 5 deletions(-) > Haven't been able to actually test these yet, but looks good to me so f= ar, so I have tested that this patch works well=EF=BC=8Cit's better to double ch= eck by=20 you or someone else. > > 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, > Vitaly > . >