We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 494dbee commit 6f16377Copy full SHA for 6f16377
drivers/block/zram/zram_drv.c
@@ -1704,12 +1704,13 @@ static void zram_reset_device(struct zram *zram)
1704
set_capacity_and_notify(zram->disk, 0);
1705
part_stat_set_all(zram->disk->part0, 0);
1706
1707
- up_write(&zram->init_lock);
1708
/* I/O operation under all of CPU are done so let's free */
1709
zram_meta_free(zram, disksize);
1710
memset(&zram->stats, 0, sizeof(zram->stats));
1711
zcomp_destroy(comp);
1712
reset_bdev(zram);
+
1713
+ up_write(&zram->init_lock);
1714
}
1715
1716
static ssize_t disksize_store(struct device *dev,
0 commit comments