Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2165152rdb; Tue, 20 Feb 2024 21:32:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWI9M/uIFmTgzPAL0mdTqJB003tYTpkWh+bc/xaXCWeOgRgKYknWbqxoBwpQvNownUkHPX/WYy1iCfwv7LXbgvg3Mj4jdGpiez/j8Dt1A== X-Google-Smtp-Source: AGHT+IEtxNTagDe0fGefykyflbsDD4jaCvJNzEW6BIesKd2HSDfkYFa0g8vDgVRG/7fHeT2J45gm X-Received: by 2002:a17:906:3387:b0:a38:51c2:68a5 with SMTP id v7-20020a170906338700b00a3851c268a5mr10907265eja.7.1708493549498; Tue, 20 Feb 2024 21:32:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708493549; cv=pass; d=google.com; s=arc-20160816; b=UDMasVGqSBbCf34OqKPeoqt0LZ6CfD+zZaptbYwlgD1L7D3VXt398sL5/W/PaOTgih fN2dbeHfH+ItqKDdYvEEJuK5rWarw5OTWF+xZEwouCZFVSlnwfS4yD58veDPm7FnvZ9o 8gteCR0hskB5rfcJTJUUoV1B+bsGws4FV1LpXbjIBbn6Lnh1y5CsEgEaqs0MbcBHqlBo 4TVNgW7ODcl9deQMh873u8Utx/3iwDSQ2GL5KXOKsfaPAMzinM8wFiowO6bECmwkQFgl A25F/4g8q0qFUHA0i9NFQ97O+SwJviodxxweEgUHypUBRxnOt3WUaYAWP9kSa/b8x8oB 7qvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=zUpfDI4nw8Zj/Vc/iDZn66B+TrdWM8bmY0S6Ci8JXnc=; fh=MU+5k7jZsWTvt2KbCx2kO26jXuO5jbGnkxZD8kelgps=; b=EXi0ywxaVjNZ+uPhnz16WhT+pEVU2O03eSdYxmvt9y7oJut2o3AKmS11/JrSEsvf01 trmu6AiNxsU0LQRiq6maR6GL7RDWnQ7XSoz+k9R1BVRnqQnIWk+PBsV6zRN19E5oMnzq qRWOZcOcUSVcmePGWk3qkC3IkOLq0/UOafb8YcIlDHLr7dyiFiWNe1h/m8A3fpDvcVD5 vkwmudVR53oFH4vctCEo8peVFGRG97pLJscspShMjEICadIH0t9mf2RLFnL1pYmwl/9O M1WVKNRBHOFPBOaNkDiy6Rm4Lpgga6DluSNrt05NDL/HQW0i8tzcMJ+ncyg5mSNoG7+f kayA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-2208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=QUARANTINE) header.from=apana.org.au Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dv19-20020a170906b81300b00a3ef7c0e120si1360338ejb.958.2024.02.20.21.32.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 21:32:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au dmarc=pass fromdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-crypto+bounces-2208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=QUARANTINE dis=QUARANTINE) header.from=apana.org.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 413B81F21534 for ; Wed, 21 Feb 2024 05:32:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7940D39AF3; Wed, 21 Feb 2024 05:32:23 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D40D22F0C; Wed, 21 Feb 2024 05:32:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708493543; cv=none; b=LwEFXRIFcSc/KMgZBtMLaBueb5jCXbL/mHem4biwxuBE2ovSBTYfBHUBOj6kohRffgqsnbztRqA0qHgBLByejSbpSE9DeKYFWrRvg+btD/YCgDFuJRzuePzXdF8m8QdLrPqgxMinJji+Txi8QSi533t27jaOLBF9XG2TXBzB5O0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708493543; c=relaxed/simple; bh=zvcvPUBtHMU0SFvQxH1roRSCnOnD9ot/WLPV0qFdLaM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EAYI3ll2DUL8I9CMHpX26pJAPZ5V/bpTk59VDfSuEHm7zjRhuShhhoFRvg143nxgD4nogU2vUNZIBfi3XojY98aBhDAIqCZynE4m7H+sjUtlDG46nAFcvBXh+16sU70lo/lHd0Tf96j+PVZ5z8/+l2HJc2kjEp4SChtfPW5bOwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rcfCr-00FwlR-24; Wed, 21 Feb 2024 13:31:46 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Wed, 21 Feb 2024 13:31:59 +0800 Date: Wed, 21 Feb 2024 13:31:59 +0800 From: Herbert Xu To: Barry Song <21cnbao@gmail.com> Cc: akpm@linux-foundation.org, davem@davemloft.net, hannes@cmpxchg.org, linux-crypto@vger.kernel.org, linux-mm@kvack.org, nphamcs@gmail.com, yosryahmed@google.com, zhouchengming@bytedance.com, chriscli@google.com, chrisl@kernel.org, ddstreet@ieee.org, linux-kernel@vger.kernel.org, sjenning@redhat.com, vitaly.wool@konsulko.com, Barry Song Subject: Re: [PATCH v5 1/3] crypto: introduce: acomp_is_async to expose if comp drivers might sleep Message-ID: References: <20240220064414.262582-1-21cnbao@gmail.com> <20240220064414.262582-2-21cnbao@gmail.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220064414.262582-2-21cnbao@gmail.com> On Tue, Feb 20, 2024 at 07:44:12PM +1300, Barry Song wrote: > From: Barry Song > > acomp's users might want to know if acomp is really async to > optimize themselves. One typical user which can benefit from > exposed async stat is zswap. > > In zswap, zsmalloc is the most commonly used allocator for > (and perhaps the only one). For zsmalloc, we cannot sleep > while we map the compressed memory, so we copy it to a > temporary buffer. By knowing the alg won't sleep can help > zswap to avoid the need for a buffer. This shows noticeable > improvement in load/store latency of zswap. > > Signed-off-by: Barry Song > --- > include/crypto/acompress.h | 6 ++++++ > 1 file changed, 6 insertions(+) Acked-by: Herbert Xu Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt