fs: move i_wb_list out from under inode_lock
commita66979abad090b2765a6c6790c9fdeab996833f2
authorDave Chinner <dchinner@redhat.com>
Tue, 22 Mar 2011 11:23:41 +0000 (22 22:23 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2011 01:17:51 +0000 (24 21:17 -0400)
treee48b2d0fac8f96456286a503aeeb952620234961
parent55fa6091d83160ca772fc37cebae45d42695a708
fs: move i_wb_list out from under inode_lock

Protect the inode writeback list with a new global lock
inode_wb_list_lock and use it to protect the list manipulations and
traversals. This lock replaces the inode_lock as the inodes on the
list can be validity checked while holding the inode->i_lock and
hence the inode_lock is no longer needed to protect the list.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/block_dev.c
fs/fs-writeback.c
fs/inode.c
fs/internal.h
include/linux/writeback.h
mm/backing-dev.c
mm/filemap.c
mm/rmap.c