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: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7598392894
commit
8e186e454e
1 changed files with 4 additions and 6 deletions
|
@ -356,12 +356,10 @@ extern struct tree_balance *cur_tb;
|
|||
void reiserfs_panic(struct super_block *sb, const char *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" */
|
||||
panic("REISERFS: panic (device %s): %s\n",
|
||||
dump_stack();
|
||||
|
||||
panic(KERN_EMERG "REISERFS: panic (device %s): %s\n",
|
||||
reiserfs_bdevname(sb), error_buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue