diff options
author | Josef Bacik <josef@redhat.com> | 2009-12-08 21:48:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-14 09:45:14 -0800 |
commit | 1cd3f1980ce02bd814879ce1ac9cde5eaceb5f13 (patch) | |
tree | 76a82137e11f6e0aa98802e7a72fd567afb39106 /fs/cachefiles | |
parent | 35a6f7824919816fca466997531885044d290b59 (diff) |
ext4: wait for log to commit when umounting
(cherry picked from commit d4edac314e9ad0b21ba20ba8bc61b61f186f79e1)
There is a potential race when a transaction is committing right when
the file system is being umounting. This could reduce in a race
because EXT4_SB(sb)->s_group_info could be freed in ext4_put_super
before the commit code calls a callback so the mballoc code can
release freed blocks in the transaction, resulting in a panic trying
to access the freed s_group_info.
The fix is to wait for the transaction to finish committing before we
shutdown the multiblock allocator.
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions