Re: [PATCH] zram: fix umount-reset_store-mount race condition

From: Sergey Senozhatsky
Date: Tue Feb 03 2015 - 09:14:57 EST


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 unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/