Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65547661 authored by Jan Kara's avatar Jan Kara
Browse files

ext2: Call dquot_writeback_dquots() with s_umount held



ext2_sync_fs() could be called without s_umount semaphore held when
called through ext2_write_super() from __ext2_write_inode(). This
function then calls dquot_writeback_dquots() which relies on s_umount to
be held for protection against other quota operations.

In fact __ext2_write_inode() does not need all the functionality
ext2_write_super() provides. It is enough to just write the superblock.
So use ext2_sync_super() instead.

Fixes: 9d1ccbe7
Reported-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent ab494964
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment