[Drbd-dev] [PATCH 60/78] zram: remove the claim mechanism

Christoph Hellwig hch at lst.de
Thu Nov 26 10:59:48 CET 2020


On Wed, Nov 25, 2020 at 05:11:07PM -0800, Minchan Kim wrote:
> With this patch, how deal with the race?
> 
> CPU 1                                     CPU 2
> 
> hot_remove_store
>   zram_remove
>     zram_busy
>       return -EBUSY
>                                          open /dev/zram0
>     del_gendisk
>     zram_reset and destroy

Yeah, it looks like zram does not really handle hot unplugging unlike
other drivers.  So I've dropped this one for now.


More information about the drbd-dev mailing list