ptllnd - Portals 3.3 / UNICOS/lc 1.5.x, 2.0.x
* bug fixes
+Severity : normal
+Bugzilla : 11680
+Description: make panic on lbug configurable
+
------------------------------------------------------------------------------
2007-04-01 Cluster File Systems, Inc. <info@clusterfs.com>
/* Has there been an LBUG? */
extern unsigned int libcfs_catastrophe;
+extern unsigned int libcfs_panic_on_lbug;
/*
* struct ptldebug_header is defined in libcfs/<os>/libcfs.h
unsigned int libcfs_catastrophe;
EXPORT_SYMBOL(libcfs_catastrophe);
+unsigned int libcfs_panic_on_lbug = 0;
+EXPORT_SYMBOL(libcfs_panic_on_lbug);
+
atomic_t libcfs_kmemory = ATOMIC_INIT(0);
EXPORT_SYMBOL(libcfs_kmemory);
libcfs_debug_dumpstack(NULL);
libcfs_debug_dumplog();
libcfs_run_lbug_upcall(file, func, line);
+ if (libcfs_panic_on_lbug)
+ panic("LBUG");
set_task_state(current, TASK_UNINTERRUPTIBLE);
while (1)
schedule();
PSDEV_LNET_UPCALL, /* User mode upcall script */
PSDEV_LNET_MEMUSED, /* bytes currently PORTAL_ALLOCated */
PSDEV_LNET_CATASTROPHE, /* if we have LBUGged or panic'd */
+ PSDEV_LNET_PANIC_ON_LBUG, /* flag to panic on LBUG */
};
int LL_PROC_PROTO(proc_dobitmasks);
.mode = 0444,
.proc_handler = &proc_dointvec
},
+ {
+ .ctl_name = PSDEV_LNET_PANIC_ON_LBUG,
+ .procname = "panic_on_lbug",
+ .data = &libcfs_panic_on_lbug,
+ .maxlen = sizeof(int),
+ .mode = 0444,
+ .proc_handler = &proc_dointvec
+ },
{0}
};