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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 7582AC433DB for ; Thu, 14 Jan 2021 16:56:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0AC1023B46 for ; Thu, 14 Jan 2021 16:56:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AC1023B46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 374418D00F1; Thu, 14 Jan 2021 11:56:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3255E8D00F0; Thu, 14 Jan 2021 11:56:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 23A888D00F1; Thu, 14 Jan 2021 11:56:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0253.hostedemail.com [216.40.44.253]) by kanga.kvack.org (Postfix) with ESMTP id 0D1078D00F0 for ; Thu, 14 Jan 2021 11:56:50 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C99EB1EF3 for ; Thu, 14 Jan 2021 16:56:49 +0000 (UTC) X-FDA: 77704984938.24.key02_110db2727528 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id A95AA1A4A5 for ; Thu, 14 Jan 2021 16:56:49 +0000 (UTC) X-HE-Tag: key02_110db2727528 X-Filterd-Recvd-Size: 3840 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Thu, 14 Jan 2021 16:56:48 +0000 (UTC) Date: Thu, 14 Jan 2021 17:56:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610643405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aKn/QBNXkiTZkcqk/tbHW0VAwn02yIglBIczfs2pWxk=; b=Jz+NmKaxVaMHpUsW7Hh1j5qPs2sj7kyFbOqBNrWm0cMUdY2ZZfVk2L9Jf+yBQm3bjkGvnh NI0Gk9w4jF4AaSzgUYZzvfvOAiLL4BBmeNE+RyBghcmbvE4ExFFUmVXkQM9E43sgoP6t8X LTepvsiHIeKjtHk/f4+FcZDCU5brI9qk3Adc7kwWzC5u2G5HUrqWLa94Yk461j1/blvRHP q4NTxrMutgmXgvmVUucmgWMoWC/jjNVt4+BVBbhKEeRRmKb+yxYHXBqsrjOLhM2UTnSCKs +ddaLMrN7d4k2vpXs29ySkEvPPE81aHgnM3BNoWhSHHOrARTz7khHE/U5Jr3sQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610643405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aKn/QBNXkiTZkcqk/tbHW0VAwn02yIglBIczfs2pWxk=; b=w/mI3YHVjVFaxxTfR5j8PmKOJIehUjsQFIFbqEJAH/XsbC/4nXyvuhEEM5OM9d1X0gl978 QUzA/0UgsC/xanDQ== From: Sebastian Andrzej Siewior To: Vitaly Wool Cc: "tiantao (H)" , "Song Bao Hua (Barry Song)" , Shakeel Butt , Minchan Kim , Mike Galbraith , LKML , linux-mm , NitinGupta , Sergey Senozhatsky , Andrew Morton , "tiantao (H)" Subject: Re: [PATCH] zsmalloc: do not use bit_spin_lock Message-ID: <20210114165645.czqpsk3lacmiyiik@linutronix.de> References: <4490cb6a7e2243fba374e40652979e46@hisilicon.com> <08cbef1e43634c4099709be8e99e5d27@hisilicon.com> <1d0d4a3576e74d128d7849342a7e9faf@hisilicon.com> <4e686c73-b453-e714-021a-1fcd0a565984@huawei.com> <20210114161850.zjcfhsgtmojjjqba@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: On 2021-01-14 17:29:37 [+0100], Vitaly Wool wrote: > On Thu, 14 Jan 2021, 17:18 Sebastian Andrzej Siewior, > wrote: > > > > On 2020-12-23 19:25:02 [+0100], Vitaly Wool wrote: > > > > write the following patch according to your idea, what do you think ? > > > > > > Yep, that is basically what I was thinking of. Some nitpicks below: > > > > Did this go somewhere? The thread just ends here on my end. > > Mike, is this patch fixing / helping your case in anyway? > > Please see > * https://marc.info/?l=linux-mm&m=160889419514019&w=2 > * https://marc.info/?l=linux-mm&m=160889418114011&w=2 > * https://marc.info/?l=linux-mm&m=160889448814057&w=2 Thank you, that would be 1608894171-54174-1-git-send-email-tiantao6@hisilicon.com for b4 compatibility :) > Haven't had time to test these yet but seem to be alright. So zs_map_object() still disables preemption but the mutex part is avoided by the patch? > Best regards, > Vitaly Sebastian