Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751952AbbHMDUM (ORCPT ); Wed, 12 Aug 2015 23:20:12 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:55100 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751345AbbHMDUK (ORCPT ); Wed, 12 Aug 2015 23:20:10 -0400 Date: Thu, 13 Aug 2015 11:19:54 +0800 From: Herbert Xu To: Joonsoo Kim Cc: Andrew Morton , Minchan Kim , Nitin Gupta , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, "David S. Miller" , Stephan Mueller , Joonsoo Kim Subject: Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem Message-ID: <20150813031954.GA19481@gondor.apana.org.au> References: <1439432654-23322-1-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439432654-23322-1-git-send-email-iamjoonsoo.kim@lge.com> 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 Content-Length: 1474 Lines: 30 On Thu, Aug 13, 2015 at 11:24:13AM +0900, Joonsoo Kim wrote: > Until now, zram uses compression algorithm through direct call > to core algorithm function, but, it has drawback that we need to add > compression algorithm manually to zram. If we don't do that, we cannot > utilize various compression algorithms in the system. To improve this > situation, zram will be changed to use crypto subsystem in following > patch. There is one problem with this change. Zram has a interface > that what compression algorithm it can support. Although crypto subsystem > has /proc interface to search all of crypto algorithm, but, there is > no way to get just compression algorithm in cryto subsystem. To implement > it on zram-side, crypto_alg_list and rwsem should be exported so > this patch do it. > > Signed-off-by: Joonsoo Kim Nack. We already have a netlink interface that can be used to query algorithms and the type information is present in the report. The interface is crypto_user and should be used instead of exporting the raw list. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/