Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 15:08), Sergey Senozhatsky wrote: > hm... no, it's 100% stable sorry, should be "it's NOT 100% stable". -ss > ./iozone -t 3 -R -r 16K -s 60M -I +Z > > test basesrcu > > " Initial write " 1274320.94 1251996.78 > "Rewrite " 1965783.94

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 14:35), Minchan Kim wrote: > I tested it with dd on /dev/zram0 without any FS on my KVM > and I cannot see any measureable performance gap. > Hmm, I will try it on real machine. hm... no, it's 100% stable ./iozone -t 3 -R -r 16K -s 60M -I +Z test basesrcu

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 01:58:55PM +0900, Minchan Kim wrote: > On Wed, Jan 28, 2015 at 01:50:28PM +0900, Sergey Senozhatsky wrote: > > On (01/28/15 13:07), Sergey Senozhatsky wrote: > > > On (01/28/15 12:53), Sergey Senozhatsky wrote: > > > > > So, I want to go with srcu. Do you agree? or another

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 01:50:28PM +0900, Sergey Senozhatsky wrote: > On (01/28/15 13:07), Sergey Senozhatsky wrote: > > On (01/28/15 12:53), Sergey Senozhatsky wrote: > > > > So, I want to go with srcu. Do you agree? or another suggestion? > > > > > > yes, I think we need to take a second look

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 12:53:54PM +0900, Sergey Senozhatsky wrote: > On (01/28/15 11:57), Minchan Kim wrote: > [..] > > > second, > > > after kick_all_cpus_sync() new RW operations will see false init_done(). > > > bdev->bd_holders protects from resetting device which has read/write > > >

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 13:07), Sergey Senozhatsky wrote: > On (01/28/15 12:53), Sergey Senozhatsky wrote: > > > So, I want to go with srcu. Do you agree? or another suggestion? > > > > yes, I think we need to take a second look on srcu approach. > > > > ... or we can ask lockdep to stop false alarming us

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 12:53), Sergey Senozhatsky wrote: > > So, I want to go with srcu. Do you agree? or another suggestion? > > yes, I think we need to take a second look on srcu approach. > ... or we can ask lockdep to stop false alarming us and leave it as is. I wouldn't say that ->init_lock is so

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 11:57), Minchan Kim wrote: [..] > > second, > > after kick_all_cpus_sync() new RW operations will see false init_done(). > > bdev->bd_holders protects from resetting device which has read/write > > operation ongoing on the onther CPU. > > > > I need to refresh on how ->bd_holders

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 11:07:59AM +0900, Sergey Senozhatsky wrote: > On (01/28/15 09:22), Minchan Kim wrote: > > On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: > > > Hello Sergey, > > > > > > On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: > > > > Hello, > > > >

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 09:22), Minchan Kim wrote: > On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: > > Hello Sergey, > > > > On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: > > > Hello, > > > > > > On (01/27/15 12:18), Minchan Kim wrote: > > > > Hello Sergey, > > > > > >

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 09:24:49AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (01/28/15 09:15), Minchan Kim wrote: > > > > > > > > On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky > > > > > > > > wrote: > > > > > > > > > On (01/23/15 15:48), Jerome Marchand wrote: > > > > > > >

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
Hello, On (01/28/15 09:15), Minchan Kim wrote: > > > > > > > On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky > > > > > > > wrote: > > > > > > > > On (01/23/15 15:48), Jerome Marchand wrote: > > > > > > > > > On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: > > > > > > > > > > On

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: > Hello Sergey, > > On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: > > Hello, > > > > On (01/27/15 12:18), Minchan Kim wrote: > > > Hello Sergey, > > > > > > On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
Hello Sergey, On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (01/27/15 12:18), Minchan Kim wrote: > > Hello Sergey, > > > > On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: > > > On (01/27/15 01:00), Minchan Kim wrote: > > > > On Mon, Jan

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
Hello, On (01/28/15 09:15), Minchan Kim wrote: On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: On (01/23/15 15:48), Jerome Marchand wrote: On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: On (01/23/15 14:58), Minchan Kim wrote:

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: Hello, On (01/27/15 12:18), Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote:

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 09:24:49AM +0900, Sergey Senozhatsky wrote: Hello, On (01/28/15 09:15), Minchan Kim wrote: On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: On (01/23/15 15:48), Jerome Marchand wrote: On 01/23/2015 03:24 PM, Sergey

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 09:22), Minchan Kim wrote: On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: Hello, On (01/27/15 12:18), Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
Hello Sergey, On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: Hello, On (01/27/15 12:18), Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: On (01/27/15 01:00), Minchan Kim wrote: On Mon, Jan 26, 2015 at

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 11:07:59AM +0900, Sergey Senozhatsky wrote: On (01/28/15 09:22), Minchan Kim wrote: On Wed, Jan 28, 2015 at 09:15:27AM +0900, Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 01:03:05PM +0900, Sergey Senozhatsky wrote: Hello, On (01/27/15

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 13:07), Sergey Senozhatsky wrote: On (01/28/15 12:53), Sergey Senozhatsky wrote: So, I want to go with srcu. Do you agree? or another suggestion? yes, I think we need to take a second look on srcu approach. ... or we can ask lockdep to stop false alarming us and leave

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 12:53:54PM +0900, Sergey Senozhatsky wrote: On (01/28/15 11:57), Minchan Kim wrote: [..] second, after kick_all_cpus_sync() new RW operations will see false init_done(). bdev-bd_holders protects from resetting device which has read/write operation ongoing on

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 01:50:28PM +0900, Sergey Senozhatsky wrote: On (01/28/15 13:07), Sergey Senozhatsky wrote: On (01/28/15 12:53), Sergey Senozhatsky wrote: So, I want to go with srcu. Do you agree? or another suggestion? yes, I think we need to take a second look on srcu

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 14:35), Minchan Kim wrote: I tested it with dd on /dev/zram0 without any FS on my KVM and I cannot see any measureable performance gap. Hmm, I will try it on real machine. hm... no, it's 100% stable ./iozone -t 3 -R -r 16K -s 60M -I +Z test basesrcu

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 15:08), Sergey Senozhatsky wrote: hm... no, it's 100% stable sorry, should be it's NOT 100% stable. -ss ./iozone -t 3 -R -r 16K -s 60M -I +Z test basesrcu Initial write 1274320.94 1251996.78 Rewrite 1965783.94 1994964.06

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Minchan Kim
On Wed, Jan 28, 2015 at 01:58:55PM +0900, Minchan Kim wrote: On Wed, Jan 28, 2015 at 01:50:28PM +0900, Sergey Senozhatsky wrote: On (01/28/15 13:07), Sergey Senozhatsky wrote: On (01/28/15 12:53), Sergey Senozhatsky wrote: So, I want to go with srcu. Do you agree? or another suggestion?

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 12:53), Sergey Senozhatsky wrote: So, I want to go with srcu. Do you agree? or another suggestion? yes, I think we need to take a second look on srcu approach. ... or we can ask lockdep to stop false alarming us and leave it as is. I wouldn't say that -init_lock is so hard to

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-27 Thread Sergey Senozhatsky
On (01/28/15 11:57), Minchan Kim wrote: [..] second, after kick_all_cpus_sync() new RW operations will see false init_done(). bdev-bd_holders protects from resetting device which has read/write operation ongoing on the onther CPU. I need to refresh on how -bd_holders actually

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
Hello, On (01/27/15 12:18), Minchan Kim wrote: > Hello Sergey, > > On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: > > On (01/27/15 01:00), Minchan Kim wrote: > > > On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: > > > > Hello, > > > > > > > > On

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
Hello Sergey, On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: > On (01/27/15 01:00), Minchan Kim wrote: > > On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: > > > Hello, > > > > > > On (01/26/15 10:33), Minchan Kim wrote: > > > > Hello, > > > > > > > > On

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
On (01/27/15 01:00), Minchan Kim wrote: > On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: > > Hello, > > > > On (01/26/15 10:33), Minchan Kim wrote: > > > Hello, > > > > > > On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: > > > > On (01/23/15 15:48),

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (01/26/15 10:33), Minchan Kim wrote: > > Hello, > > > > On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: > > > On (01/23/15 15:48), Jerome Marchand wrote: > > > > On 01/23/2015 03:24 PM, Sergey

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
> Date: Fri, 23 Jan 2015 15:48:05 +0100 > >>> From: Jerome Marchand > >>> To: Sergey Senozhatsky , Minchan Kim > >>> > >>> CC: Andrew Morton , > >>> linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta > >>> &g

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Jerome Marchand
gey Senozhatsky , Minchan Kim >>> >>> CC: Andrew Morton , >>> linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta >>> >>> Subject: Re: [PATCH 1/2] zram: free meta out of init_lock >>> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
Hello, On (01/26/15 10:33), Minchan Kim wrote: > Hello, > > On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: > > On (01/23/15 15:48), Jerome Marchand wrote: > > > On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: > > > > On (01/23/15 14:58), Minchan Kim wrote: > > > >> We

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
Hello, On (01/26/15 10:33), Minchan Kim wrote: Hello, On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: On (01/23/15 15:48), Jerome Marchand wrote: On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: On (01/23/15 14:58), Minchan Kim wrote: We don't need to call

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: Hello, On (01/26/15 10:33), Minchan Kim wrote: Hello, On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: On (01/23/15 15:48), Jerome Marchand wrote: On 01/23/2015 03:24 PM, Sergey Senozhatsky

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
: Jerome Marchand jmarc...@redhat.com To: Sergey Senozhatsky sergey.senozhat...@gmail.com, Minchan Kim minc...@kernel.org CC: Andrew Morton a...@linux-foundation.org, linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta ngu...@vflare.org Subject: Re: [PATCH 1/2] zram: free meta out

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Jerome Marchand
...@gmail.com, Minchan Kim minc...@kernel.org CC: Andrew Morton a...@linux-foundation.org, linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta ngu...@vflare.org Subject: Re: [PATCH 1/2] zram: free meta out of init_lock User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
On (01/27/15 01:00), Minchan Kim wrote: On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: Hello, On (01/26/15 10:33), Minchan Kim wrote: Hello, On Sat, Jan 24, 2015 at 12:47:07AM +0900, Sergey Senozhatsky wrote: On (01/23/15 15:48), Jerome Marchand wrote:

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Sergey Senozhatsky
Hello, On (01/27/15 12:18), Minchan Kim wrote: Hello Sergey, On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: On (01/27/15 01:00), Minchan Kim wrote: On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: Hello, On (01/26/15 10:33), Minchan

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-26 Thread Minchan Kim
Hello Sergey, On Tue, Jan 27, 2015 at 11:17:04AM +0900, Sergey Senozhatsky wrote: On (01/27/15 01:00), Minchan Kim wrote: On Mon, Jan 26, 2015 at 11:17:09PM +0900, Sergey Senozhatsky wrote: Hello, On (01/26/15 10:33), Minchan Kim wrote: Hello, On Sat, Jan 24, 2015 at

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-25 Thread Minchan Kim
> > linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta > > > > Subject: Re: [PATCH 1/2] zram: free meta out of init_lock > > User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 > > Thunderbird/31.3.0 > > > > On 01/23/2015 03:24

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-25 Thread Minchan Kim
: Andrew Morton a...@linux-foundation.org, linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta ngu...@vflare.org Subject: Re: [PATCH 1/2] zram: free meta out of init_lock User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 On 01/23/2015

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Sergey Senozhatsky
On (01/23/15 15:48), Jerome Marchand wrote: > Date: Fri, 23 Jan 2015 15:48:05 +0100 > From: Jerome Marchand > To: Sergey Senozhatsky , Minchan Kim > > CC: Andrew Morton , > linux-kernel@vger.kernel.org, linux...@kvack.org, Nitin Gupta > > Subject: Re: [PATCH

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Jerome Marchand
On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: > On (01/23/15 14:58), Minchan Kim wrote: >> We don't need to call zram_meta_free, zcomp_destroy and zs_free >> under init_lock. What we need to prevent race with init_lock >> in reset is setting NULL into zram->meta (ie, init_done). >> This patch

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Sergey Senozhatsky
On (01/23/15 14:58), Minchan Kim wrote: > We don't need to call zram_meta_free, zcomp_destroy and zs_free > under init_lock. What we need to prevent race with init_lock > in reset is setting NULL into zram->meta (ie, init_done). > This patch does it. > > Signed-off-by: Minchan Kim > --- >

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Jerome Marchand
On 01/23/2015 06:58 AM, Minchan Kim wrote: > We don't need to call zram_meta_free, zcomp_destroy and zs_free > under init_lock. What we need to prevent race with init_lock > in reset is setting NULL into zram->meta (ie, init_done). > This patch does it. > > Signed-off-by: Minchan Kim Acked-by:

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Sergey Senozhatsky
On (01/23/15 14:58), Minchan Kim wrote: We don't need to call zram_meta_free, zcomp_destroy and zs_free under init_lock. What we need to prevent race with init_lock in reset is setting NULL into zram-meta (ie, init_done). This patch does it. Signed-off-by: Minchan Kim minc...@kernel.org

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Jerome Marchand
On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: On (01/23/15 14:58), Minchan Kim wrote: We don't need to call zram_meta_free, zcomp_destroy and zs_free under init_lock. What we need to prevent race with init_lock in reset is setting NULL into zram-meta (ie, init_done). This patch does it.

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Sergey Senozhatsky
...@kvack.org, Nitin Gupta ngu...@vflare.org Subject: Re: [PATCH 1/2] zram: free meta out of init_lock User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 On 01/23/2015 03:24 PM, Sergey Senozhatsky wrote: On (01/23/15 14:58), Minchan Kim wrote: We don't

Re: [PATCH 1/2] zram: free meta out of init_lock

2015-01-23 Thread Jerome Marchand
On 01/23/2015 06:58 AM, Minchan Kim wrote: We don't need to call zram_meta_free, zcomp_destroy and zs_free under init_lock. What we need to prevent race with init_lock in reset is setting NULL into zram-meta (ie, init_done). This patch does it. Signed-off-by: Minchan Kim minc...@kernel.org

[PATCH 1/2] zram: free meta out of init_lock

2015-01-22 Thread Minchan Kim
We don't need to call zram_meta_free, zcomp_destroy and zs_free under init_lock. What we need to prevent race with init_lock in reset is setting NULL into zram->meta (ie, init_done). This patch does it. Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 28

[PATCH 1/2] zram: free meta out of init_lock

2015-01-22 Thread Minchan Kim
We don't need to call zram_meta_free, zcomp_destroy and zs_free under init_lock. What we need to prevent race with init_lock in reset is setting NULL into zram-meta (ie, init_done). This patch does it. Signed-off-by: Minchan Kim minc...@kernel.org --- drivers/block/zram/zram_drv.c | 28