]> git.baikalelectronics.ru Git - kernel.git/commit
writeback: Protect inode->i_io_list with inode->i_lock
authorJan Kara <jack@suse.cz>
Wed, 10 Jun 2020 15:36:03 +0000 (17:36 +0200)
committerJan Kara <jack@suse.cz>
Mon, 15 Jun 2020 07:18:11 +0000 (09:18 +0200)
commit908cbac77d10f38420aebce277b0e0abaaf9147d
tree0689da48fedf802f8af757d5521eea198108fa37
parentb52c654ab4cb30c29636bbd60ffb2ea6bddbcef8
writeback: Protect inode->i_io_list with inode->i_lock

Currently, operations on inode->i_io_list are protected by
wb->list_lock. In the following patches we'll need to maintain
consistency between inode->i_state and inode->i_io_list so change the
code so that inode->i_lock protects also all inode's i_io_list handling.

Reviewed-by: Martijn Coenen <maco@android.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
CC: stable@vger.kernel.org # Prerequisite for "writeback: Avoid skipping inode writeback"
Signed-off-by: Jan Kara <jack@suse.cz>
fs/fs-writeback.c