diff options
author | Jeff Mahoney <jeffm@suse.com> | 2011-12-22 00:18:43 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-01-09 16:52:09 +0400 |
commit | a9e36da655e54545c3289b2a0700b5c443de0edd (patch) | |
tree | 14143a3c873177b70b8b66d6f8085378a2c92908 /fs/reiserfs/file.c | |
parent | a06d789b424190e9f59da391681f908486db2554 (diff) | |
download | linux-a9e36da655e54545c3289b2a0700b5c443de0edd.tar.xz |
reiserfs: Force inode evictions before umount to avoid crash
This patch fixes a crash in reiserfs_delete_xattrs during umount.
When shrink_dcache_for_umount clears the dcache from
generic_shutdown_super, delayed evictions are forced to disk. If an
evicted inode has extended attributes associated with it, it will
need to walk the xattr tree to locate and remove them.
But since shrink_dcache_for_umount will BUG if it encounters active
dentries, the xattr tree must be released before it's called or it will
crash during every umount.
This patch forces the evictions to occur before generic_shutdown_super
by calling shrink_dcache_sb first. The additional evictions caused
by the removal of each associated xattr file and dir will be automatically
handled as they're added to the LRU list.
CC: reiserfs-devel@vger.kernel.org
CC: stable@kernel.org
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs/file.c')
0 files changed, 0 insertions, 0 deletions