From 61b46207e853fbea0810ede62e97ff0cc5db7cd8 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 24 Jun 2003 23:34:23 +0000 Subject: [PATCH] Fix for bug 1466, delete thread locking up machine during orphan recovery. --- lustre/kernel_patches/patches/ext3-delete_thread-2.4.20.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/kernel_patches/patches/ext3-delete_thread-2.4.20.patch b/lustre/kernel_patches/patches/ext3-delete_thread-2.4.20.patch index 406c16a..34c5158 100644 --- a/lustre/kernel_patches/patches/ext3-delete_thread-2.4.20.patch +++ b/lustre/kernel_patches/patches/ext3-delete_thread-2.4.20.patch @@ -1,7 +1,7 @@ diff -puNr origin/fs/ext3/super.c linux/fs/ext3/super.c --- origin/fs/ext3/super.c 2003-05-04 17:23:52.000000000 +0400 +++ linux/fs/ext3/super.c 2003-05-04 17:09:20.000000000 +0400 -@@ -398,6 +398,218 @@ static void dump_orphan_list(struct supe +@@ -398,6 +398,219 @@ static void dump_orphan_list(struct supe } } @@ -154,7 +154,8 @@ diff -puNr origin/fs/ext3/super.c linux/fs/ext3/super.c + return; + } + -+ if (EXT3_I(old_inode)->i_state & EXT3_STATE_DELETE) { ++ if ((EXT3_I(old_inode)->i_state & EXT3_STATE_DELETE) || ++ (EXT3_SB(old_inode->i_sb)->s_mount_state & EXT3_ORPHAN_FS)) { + ext3_debug("doing deferred inode %lu delete (%lu blocks)\n", + old_inode->i_ino, blocks); + ext3_delete_inode(old_inode); -- 1.8.3.1