Re: [PATCH] crypto: add asynchronous compression support

2015-11-19 Thread Li, Weigang
On 11/20/2015 2:19 PM, Herbert Xu wrote: On Fri, Nov 20, 2015 at 03:04:47PM +0900, Joonsoo Kim wrote: Linearization would be enough to use sg-list but it has a problem. Linearization needs sleepable function such as vmap() and it makes sync (de)compression in atomic context impossible. Currentl

Re: [PATCH] crypto: add asynchronous compression support

2015-11-19 Thread Herbert Xu
On Fri, Nov 20, 2015 at 03:04:47PM +0900, Joonsoo Kim wrote: > > Linearization would be enough to use sg-list but it has a problem. > Linearization needs sleepable function such as vmap() and it makes > sync (de)compression in atomic context impossible. Currently, zram > did sync (de)compression in

RE: [PATCH] crypto: add asynchronous compression support

2015-11-19 Thread Joonsoo Kim
Hello, Herbert. > -Original Message- > From: Herbert Xu [mailto:herb...@gondor.apana.org.au] > Sent: Thursday, November 19, 2015 6:43 PM > To: Li, Weigang > Cc: linux-crypto@vger.kernel.org; Struk, Tadeusz; Joonsoo Kim; Sergey > Senozhatsky > Subject: Re: [PATCH] cry

Re: [PATCH] crypto: add asynchronous compression support

2015-11-19 Thread Herbert Xu
On Thu, Nov 19, 2015 at 05:52:41AM +, Li, Weigang wrote: > > After sync-up with Joonsoo Kim, we think it may be not feasible for a s/w > implementation of the sg-list based asynchronous interface, we propose > separate interfaces (patches) for acomp & ccomp. The reasons are: > 1. to support s

RE: [PATCH] crypto: add asynchronous compression support

2015-11-18 Thread Li, Weigang
On 10/16/2015 11:13 PM, Herbert Xu wrote: > On Fri, Oct 16, 2015 at 11:11:00PM +0800, Weigang Li wrote: >> This patch set introduces Asynchronous Compression API. >> What is proposed is a new crypto type called crypto_acomp_type, >> plus new struct acomp_alg and struct crypto_acomp, together with n

RE: [PATCH] crypto: add asynchronous compression support

2015-11-05 Thread Li, Weigang
, Tadeusz; Joonsoo Kim; Sergey Senozhatsky Subject: Re: [PATCH] crypto: add asynchronous compression support On Fri, Oct 16, 2015 at 11:11:00PM +0800, Weigang Li wrote: > This patch set introduces Asynchronous Compression API. > What is proposed is a new crypto type called crypto_acomp_type, plus

Re: [PATCH] crypto: add asynchronous compression support

2015-10-28 Thread Dan Streetman
ennings; Li, Weigang; >> Struk, Tadeusz >> Subject: Re: [PATCH] crypto: add asynchronous compression support >> >> On Wed, Oct 21, 2015 at 04:33:22PM +0900, Sergey Senozhatsky wrote: >> > >> > the thing is -- I still want to have/use SW compressors; and they

RE: [PATCH] crypto: add asynchronous compression support

2015-10-21 Thread Li, Weigang
> -Original Message- > From: Herbert Xu [mailto:herb...@gondor.apana.org.au] > Sent: Wednesday, October 21, 2015 3:34 PM > To: Sergey Senozhatsky > Cc: Minchan Kim; Joonsoo Kim; Dan Streetman; Seth Jennings; Li, Weigang; > Struk, Tadeusz > Subject: Re: [PATCH] cry

Re: [PATCH] crypto: add asynchronous compression support

2015-10-16 Thread Herbert Xu
On Fri, Oct 16, 2015 at 11:11:00PM +0800, Weigang Li wrote: > This patch set introduces Asynchronous Compression API. > What is proposed is a new crypto type called crypto_acomp_type, > plus new struct acomp_alg and struct crypto_acomp, together with number > of helper functions to register acomp