[DRBD-cvs] svn commit by phil - r2244 - branches/drbd-0.7/drbd -
Make drbd's thread starting to work reliable on Linux-2
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Fri Jun 23 14:26:10 CEST 2006
Author: phil
Date: 2006-06-23 14:26:09 +0200 (Fri, 23 Jun 2006)
New Revision: 2244
Modified:
branches/drbd-0.7/drbd/drbd_main.c
Log:
Make drbd's thread starting to work reliable on Linux-2.6.17 ( and
probably later kernels)
Modified: branches/drbd-0.7/drbd/drbd_main.c
===================================================================
--- branches/drbd-0.7/drbd/drbd_main.c 2006-06-23 09:16:53 UTC (rev 2243)
+++ branches/drbd-0.7/drbd/drbd_main.c 2006-06-23 12:26:09 UTC (rev 2244)
@@ -544,7 +544,7 @@
D_ASSERT(thi->task == NULL);
thi->t_state = Running;
spin_unlock(&thi->t_lock);
-
+ drbd_flush_signals(current); // otherw. may get -ERESTARTNOINTR
pid = kernel_thread(drbd_thread_setup, (void *) thi, CLONE_FS);
if (pid < 0) {
ERR("Couldn't start thread (%d)\n", pid);
More information about the drbd-cvs
mailing list