From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932162AbbIYFql (ORCPT ); Fri, 25 Sep 2015 01:46:41 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:54263 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754926AbbIYFqk (ORCPT ); Fri, 25 Sep 2015 01:46:40 -0400 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Fri, 25 Sep 2015 14:47:45 +0900 From: Joonsoo Kim To: Sergey Senozhatsky Cc: Andrew Morton , Minchan Kim , Nitin Gupta , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , Stephan Mueller Subject: Re: [PATCH v3 9/9] zram: use crypto decompress_noctx API Message-ID: <20150925054744.GH7158@js1304-P5Q-DELUXE> References: <1442553564-3476-1-git-send-email-iamjoonsoo.kim@lge.com> <1442553564-3476-10-git-send-email-iamjoonsoo.kim@lge.com> <20150921075600.GA511@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150921075600.GA511@swordfish> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2015 at 04:56:00PM +0900, Sergey Senozhatsky wrote: > On (09/18/15 14:19), Joonsoo Kim wrote: > [..] > > + /* > > + * Prepare to use crypto decompress_noctx API. One tfm is required > > + * to initialize crypto algorithm properly and fetch corresponding > > + * function pointer. But, it is sharable for multiple concurrent > > + * decompress users. > > + */ > > if comp algorithm require zstrm for both compression and decompression, > then there seems to be no need in allocating sharable ->tfm_noctx, we > will never use it. > Yes, in that case, NULL will be returned. I should describe it on somewhere. Thanks.