[PATCH] ext2 block allocation race fix
If this CPU decides that an ext2 block group has a free block it will then go in and try to acquire it. No locks are held, so another CPU can come in and steal the last block. In this case we will bogusly report a corrupted filessytem. Fix it by just restarting the scan - this will choose a different blockgroup or will generate -ENOSPC.
Showing
Please register or sign in to comment