Skip to content

Commit 9960356

Browse files
Jebaitednekovbajs
authored andcommitted
block: zram_drv: always reset zram bdev
Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: Yahya Wessam <yahyawessam2002@gmail.com>
1 parent 87f21dc commit 9960356

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/block/zram/zram_drv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,10 @@ static int zram_add(void)
19961996
zram_debugfs_register(zram);
19971997
zram0 = zram;
19981998
pr_info("Added device: %s\n", zram->disk->disk_name);
1999+
2000+
pr_info("Resetting zram bdev");
2001+
reset_bdev(zram);
2002+
19992003
return device_id;
20002004

20012005
out_free_queue:

0 commit comments

Comments
 (0)