Skip to contentSkip to conversation

2.4.7-ac4/ac5 dies due to double unlock

PATCH In review Petr Vandrovec 2 participants 2 messages Aug 4, 2001 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.7-ac4/ac5 dies due to double unlock

Hi Alan,
double-unlock on sb_lock in try_to_sync_unused inodes when
try_to_sync_unused_list() returns 0... It is reliably triggered by xmms loading mp3 tags from vfat...

Originally from 2.4.7-ac4, but still unfixed in -ac5.
Thanks,
Petr Vandrovec [email protected]

fs/inode.c +1 -1
diff -urdN linux/fs/inode.c linux/fs/inode.c
@@ -412,7 +412,7 @@
 			continue;
 		spin_unlock(&sb_lock);
 		if (!try_to_sync_unused_list(&sb->s_dirty))
-			break;
+			return;
 		spin_lock(&sb_lock);
 	}
 	spin_unlock(&sb_lock);
#1 lore raw
Quoted 6 lines · Petr Vandrovec

Hi Alan,
double-unlock on sb_lock in try_to_sync_unused inodes when
try_to_sync_unused_list() returns 0... It is reliably triggered by xmms loading mp3 tags from vfat...

Originally from 2.4.7-ac4, but still unfixed in -ac5.

Thanks for spotting. Hell knows where that break; had come from - in namespaces-patch we do return; in that place and that what should've been in the splitup that went into -ac. My apologies...

fs/inode.c line 418

Quoted 12 lines

diff -urdN linux/fs/inode.c linux/fs/inode.c

fs/inode.c +1 -1
@@ -412,7 +412,7 @@
 			continue;
 		spin_unlock(&sb_lock);
 		if (!try_to_sync_unused_list(&sb->s_dirty))
-			break;
+			return;
 		spin_lock(&sb_lock);
 	}
 	spin_unlock(&sb_lock);

Yup. Alan, apply it, please.