hello,
On (02/04/15 00:39), Minchan Kim wrote:
> So, you mean this?
>
> reset_store
>
> down_write(&zram->init_lock);
> zram_reset_device(zram);
> set_capacity(zram->disk, 0);
> up_write(&zram->init_lock);
>
>
> If so, +1.
> Hope you send a squash patch to Andrew.
ye
Hello,
On Wed, Feb 04, 2015 at 12:06:24AM +0900, Sergey Senozhatsky wrote:
> On (02/03/15 23:52), Sergey Senozhatsky wrote:
> > On (02/03/15 23:15), Sergey Senozhatsky wrote:
> > > > How about keep this here? Protected by zram->init_lock.
> > > >set_capacity(zram->disk, 0);
> > >
> >
On (02/03/15 23:52), Sergey Senozhatsky wrote:
> On (02/03/15 23:15), Sergey Senozhatsky wrote:
> > > How about keep this here? Protected by zram->init_lock.
> > >set_capacity(zram->disk, 0);
> >
> > why?
> >
> yeah, I see why. good catch.
>
> hm, why do we perform destroy_device() b
On (02/03/15 23:15), Sergey Senozhatsky wrote:
> > How about keep this here? Protected by zram->init_lock.
> >set_capacity(zram->disk, 0);
>
> why?
>
yeah, I see why. good catch.
hm, why do we perform destroy_device() before zram_reset_device() in
zram_exit()?
how about doing someth
Hello,
On (02/03/15 22:05), Ganesh Mahendran wrote:
> > zram->disksize = 0;
> > - if (reset_capacity)
> > - set_capacity(zram->disk, 0);
>
> How about keep this here? Protected by zram->init_lock.
>set_capacity(zram->disk, 0);
why?
-ss
--
To unsub
Hello, Sergey
2015-02-02 22:08 GMT+08:00 Sergey Senozhatsky :
> Ganesh Mahendran was the first one who proposed to use bdev->bd_mutex
> to avoid ->bd_holders race condition:
>
> CPU0CPU1
> umount /* zram->init_done is true */
> reset_store()
> bdev->bd_holders =
Hello Sergey,
On Mon, Feb 02, 2015 at 11:08:40PM +0900, Sergey Senozhatsky wrote:
> Ganesh Mahendran was the first one who proposed to use bdev->bd_mutex
> to avoid ->bd_holders race condition:
>
> CPU0CPU1
> umount /* zram->init_done is true */
> reset_store()
Ganesh Mahendran was the first one who proposed to use bdev->bd_mutex
to avoid ->bd_holders race condition:
CPU0CPU1
umount /* zram->init_done is true */
reset_store()
bdev->bd_holders == 0 mount
... zram_mak
8 matches
Mail list logo