Re: [PATCH 60/78] zram: remove the claim mechanism

Hannes Reinecke
2020-11-20T07:37:25Z

On 11/16/20 3:57 PM, Christoph Hellwig wrote:
> The zram claim mechanism was added to ensure no new opens come in
> during teardown. But the proper way to archive that is to call
> del_gendisk first, which takes care of all that. Once del_gendisk
> is called in the right place, the reset side can also be simplified
> as no I/O can be outstanding on a block device that is not open.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> drivers/block/zram/zram_drv.c | 76 ++++++++++-------------------------
> 1 file changed, 21 insertions(+), 55 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer