From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756900AbcFABHN (ORCPT ); Tue, 31 May 2016 21:07:13 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:32990 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756829AbcFABHL (ORCPT ); Tue, 31 May 2016 21:07:11 -0400 Date: Wed, 1 Jun 2016 10:07:07 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Sergey Senozhatsky , Andrew Morton , Joonsoo Kim , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCH v2 4/8] zram: use crypto api to check alg availability Message-ID: <20160601010707.GB461@swordfish> References: <20160531122017.2878-1-sergey.senozhatsky@gmail.com> <20160531122017.2878-5-sergey.senozhatsky@gmail.com> <20160601000304.GF19976@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160601000304.GF19976@bbox> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Minchan, On (06/01/16 09:03), Minchan Kim wrote: [..] > So, if we do 'cat /sys/block/zram0/comp_algorithm", every crypto modules > in the backend array are loaded in memory and not unloaded until admin > executes rmmod? Right? yes, I think so. [..] > If user load out-of-tree crypto compression module, what's status of > comp_algorithm? > > #> insmod foo_crypto.ko > #> echo foo > /sys/block/zram0/comp_algorithm > #> cat /sys/block/zram0/comp_algorithm > lzo lz4 [foo] > ? yes, "lzo lz4 [out-of-tree-module-name]". -ss