rc = kernel_thread(portals_do_debug_dumplog,
NULL, CLONE_VM | CLONE_FS | CLONE_FILES);
if (rc < 0) {
- printk(KERN_ERR "LustreError: cannot start dump thread\n");
+ printk(KERN_ERR "LustreError: cannot start log dump thread: "
+ "%d\n", rc);
return;
}
sleep_on(&debug_ctlwq);
.bltd_blp = blp,
};
init_completion(&blp->blp_comp);
- if (kernel_thread(ldlm_bl_thread_main, &bltd, 0) < 0) {
+ rc = kernel_thread(ldlm_bl_thread_main, &bltd, 0);
+ if (rc < 0) {
CERROR("cannot start LDLM thread #%d: rc %d\n", i, rc);
LBUG();
GOTO(out_thread, rc);
rc = kernel_thread(portals_do_debug_dumplog,
NULL, CLONE_VM | CLONE_FS | CLONE_FILES);
if (rc < 0) {
- printk(KERN_ERR "LustreError: cannot start dump thread\n");
+ printk(KERN_ERR "LustreError: cannot start log dump thread: "
+ "%d\n", rc);
return;
}
sleep_on(&debug_ctlwq);