Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e186e45 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds
Browse files

reiserfs: dont use BUG when panicking



Change reiserfs_panic() to use panic() initially instead of BUG().  Using
BUG() ignores the configurable panic behavior, so systems that should be
failing and rebooting are left hanging.  This causes problems in
active/standby HA scenarios.

Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 75983928
Loading
Loading
Loading
Loading
+4 −6
Original line number Original line Diff line number Diff line
@@ -356,12 +356,10 @@ extern struct tree_balance *cur_tb;
void reiserfs_panic(struct super_block *sb, const char *fmt, ...)
void reiserfs_panic(struct super_block *sb, const char *fmt, ...)
{
{
	do_reiserfs_warning(fmt);
	do_reiserfs_warning(fmt);
	printk(KERN_EMERG "REISERFS: panic (device %s): %s\n",
	       reiserfs_bdevname(sb), error_buf);
	BUG();


	/* this is not actually called, but makes reiserfs_panic() "noreturn" */
	dump_stack();
	panic("REISERFS: panic (device %s): %s\n",

	panic(KERN_EMERG "REISERFS: panic (device %s): %s\n",
	       reiserfs_bdevname(sb), error_buf);
	       reiserfs_bdevname(sb), error_buf);
}
}