summaryrefslogtreecommitdiff
path: root/fs/ext3
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2011-12-21 21:18:43 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-12 11:33:20 -0800
commitedd1ece0af40d0fa749c8b34c3c968adab1a846f (patch)
tree232a7778ae7122f8b137b201685545019ecdcb0c /fs/ext3
parent67b608473df5560f2a23e3da2027ca9f5c1c9900 (diff)
reiserfs: Force inode evictions before umount to avoid crash
commit a9e36da655e54545c3289b2a0700b5c443de0edd upstream. 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 Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ext3')
0 files changed, 0 insertions, 0 deletions