diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-07-26 15:15:46 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-07-26 15:15:46 -0400 |
commit | a34eb503742fd25155fd6cff6163daacead9fbc3 (patch) | |
tree | a03b17e804bc3ddfca87b57d9cff435b41c0db8a /REPORTING-BUGS | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) |
ext4: make sure group number is bumped after a inode allocation race
When we try to allocate an inode, and there is a race between two
CPU's trying to grab the same inode, _and_ this inode is the last free
inode in the block group, make sure the group number is bumped before
we continue searching the rest of the block groups. Otherwise, we end
up searching the current block group twice, and we end up skipping
searching the last block group. So in the unlikely situation where
almost all of the inodes are allocated, it's possible that we will
return ENOSPC even though there might be free inodes in that last
block group.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions