Re: [PATCH v1 01/10] zram: avoid calling of zram_meta_free under init_lock

2015-01-22 Thread Minchan Kim
On Fri, Jan 23, 2015 at 10:03:36AM +0900, Minchan Kim wrote: > Hello, > > On Wed, Jan 21, 2015 at 11:21:53PM +0900, Sergey Senozhatsky wrote: > > On (01/21/15 15:14), Minchan Kim wrote: > > > We don't need to call zram_meta_free under init_lock. > > > What we need to prevent race is setting NULL i

Re: [PATCH v1 01/10] zram: avoid calling of zram_meta_free under init_lock

2015-01-22 Thread Minchan Kim
Hello, On Wed, Jan 21, 2015 at 11:21:53PM +0900, Sergey Senozhatsky wrote: > On (01/21/15 15:14), Minchan Kim wrote: > > We don't need to call zram_meta_free under init_lock. > > What we need to prevent race is setting NULL into zram->meta > > (ie, init_done). This patch does it. > > > > Signed-o

Re: [PATCH v1 01/10] zram: avoid calling of zram_meta_free under init_lock

2015-01-21 Thread Sergey Senozhatsky
On (01/21/15 15:14), Minchan Kim wrote: > We don't need to call zram_meta_free under init_lock. > What we need to prevent race is setting NULL into zram->meta > (ie, init_done). This patch does it. > > Signed-off-by: Minchan Kim > --- > drivers/block/zram/zram_drv.c | 5 +++-- > 1 file changed,