Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp416694pxb; Thu, 14 Jan 2021 08:59:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxTw9QUxcSKHcbg9kTL7HYOaVjKoO0s29o96L144SXOAiBVMIcHQR3Ic9XNP4s++VWTJKd X-Received: by 2002:a17:906:7f90:: with SMTP id f16mr5847078ejr.466.1610643545889; Thu, 14 Jan 2021 08:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610643545; cv=none; d=google.com; s=arc-20160816; b=oXCm/Bpai3TitMEdxiw9NRXBU1KN3M0alZNlLxKVsA4f/7e18W3uzDIjuLt94VbraK RVddbfRK4Gs62yxcwfZnZZHyl9ah9sNIT4n33fwriNvpYD4IIjY9X9ob8PdRrY2JuVKP U9fNA1dON2AXo12fB+uBfSENS0vwckUSfvXao8BQ8oK0VkRY4QvtpW3SPKCtaKWon8xi Q5AkT8w+Kv32r88DslkdDpdeUCADCRL1u5jphVKYPuO2fBLx1kv8hn3hjWjOkamuM4B4 XI3yIIHBrd7z995MzuxxrA2pIzaDOYkmtKBUWtcoM1WJchYd0WpqclR1OUDGTbbalLsn 8hpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=aKn/QBNXkiTZkcqk/tbHW0VAwn02yIglBIczfs2pWxk=; b=R+TqqU+e3uGfREa8p48mDnicC0aPSqPvJzpuEyfJcAEupf/Ji6npV8L6krvoXiPufr A6o4x/2rE/NsGY0FvSnV+hnyWiFvvYPvjNnY6gMYjBnPOxVJ4ArLqsVhKJBaobjsx6h7 CHWMEmXR249iSoQL2pjmYEQzsLZrEhNItsjUYcOoXVBS0uve7OL2A0ZCwf7J0SL2pkZj odb+osb/LnKe3dGmjH5AyCQc4ffCg34bS4Oi2BqNPScsizoeTDrzxpFN32Apy12jO0Gx CFZouAaxguviLrRNmlvj80Ljral4OiebA04SGdQKxFgp0qYmGZ/79Wy5ve6axse6JyEe SyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jz+NmKax; dkim=neutral (no key) header.i=@linutronix.de header.b="w/mI3YHV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay26si2319845ejb.195.2021.01.14.08.58.41; Thu, 14 Jan 2021 08:59:05 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jz+NmKax; dkim=neutral (no key) header.i=@linutronix.de header.b="w/mI3YHV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbhANQ53 (ORCPT + 99 others); Thu, 14 Jan 2021 11:57:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbhANQ52 (ORCPT ); Thu, 14 Jan 2021 11:57:28 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D0F4C061574 for ; Thu, 14 Jan 2021 08:56:48 -0800 (PST) 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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