Re: [PATCH] zram: fix race between reset and mount/mkswap

2015-01-31 Thread Ganesh Mahendran
Please ignore this. Sorry for the noise. 2015-01-31 16:25 GMT+08:00 Ganesh Mahendran : > Currently there is a racy between reset and mount/mkswap, so that it could > make oops when umount a corropted filesystem. > > This issue can be reproduced by adding delay between bdput() and > zram_reset_dev

[PATCH] zram: fix race between reset and mount/mkswap

2015-01-31 Thread Ganesh Mahendran
Currently there is a racy between reset and mount/mkswap, so that it could make oops when umount a corropted filesystem. This issue can be reproduced by adding delay between bdput() and zram_reset_device reset_store(...) { bdput(bdev); msleep(2000); // test code zram