• Theodore Ts'o's avatar
    ext4: Use bitops to read/modify EXT4_I(inode)->i_state · 19f5fb7a
    Theodore Ts'o authored
    At several places we modify EXT4_I(inode)->i_state without holding
    i_mutex (ext4_release_file, ext4_bmap, ext4_journalled_writepage,
    ext4_do_update_inode, ...). These modifications are racy and we can
    lose updates to i_state. So convert handling of i_state to use bitops
    which are atomic.
    
    Cc: Jan Kara <jack@suse.cz>
    Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
    19f5fb7a
ialloc.c 34 KB