Skip to content
  • Tejun Heo's avatar
    writeback: use unlocked_inode_to_wb transaction in inode_congested() · 5cb8b824
    Tejun Heo authored
    
    
    Similar to wb stat updates, inode_congested() accesses the associated
    wb of an inode locklessly, which will break with foreign inode wb
    switching.  This path updates inode_congested() to use unlocked inode
    wb access transaction introduced by the previous patch.
    
    Combined with the previous two patches, this makes all wb list and
    access operations to be protected by either of inode->i_lock,
    wb->list_lock, or mapping->tree_lock while wb switching is in
    progress.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Wu Fengguang <fengguang.wu@intel.com>
    Cc: Greg Thelen <gthelen@google.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    5cb8b824