aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-05-28 14:50:54 -0400
committerJens Axboe <axboe@fb.com>2015-06-02 08:40:20 -0600
commit5cb8b8241e6146c487ca715551ac3a5e80358585 (patch)
tree54faea693b6f741a59ade1b639c40e7ff892b4d2 /include/linux/backing-dev.h
parentwriteback: implement unlocked_inode_to_wb transaction and use it for stat updates (diff)
downloadlinux-dev-5cb8b8241e6146c487ca715551ac3a5e80358585.tar.xz
linux-dev-5cb8b8241e6146c487ca715551ac3a5e80358585.zip
writeback: use unlocked_inode_to_wb transaction in inode_congested()
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: Tejun 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: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions