summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-06-06 16:49:13 +1000
committerMartin Schwenke <martins@samba.org>2014-06-12 08:10:36 +0200
commit9e6e48750d1fad8ec7cd076f7ca7d2b028007258 (patch)
treed17b9ce45920873689734a88aa2733d2368207db
parente9eed41d7ffded2dfd1406f60ad08fe070fd52c1 (diff)
downloadsamba-9e6e48750d1fad8ec7cd076f7ca7d2b028007258.zip
samba-9e6e48750d1fad8ec7cd076f7ca7d2b028007258.tar.gz
samba-9e6e48750d1fad8ec7cd076f7ca7d2b028007258.tar.xz
ctdb-daemon: Reset scheduler policy for helper processes
Do not run helper processes with real-time priority. This regression was caused when locking and eventscript code switched to use vfork() and helper instead of ctdb_fork(). Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Thu Jun 12 08:10:36 CEST 2014 on sn-devel-104
-rw-r--r--ctdb/server/ctdb_event_helper.c2
-rw-r--r--ctdb/server/ctdb_lock_helper.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_event_helper.c b/ctdb/server/ctdb_event_helper.c
index be36b0b..238103a 100644
--- a/ctdb/server/ctdb_event_helper.c
+++ b/ctdb/server/ctdb_event_helper.c
@@ -76,6 +76,8 @@ int main(int argc, char *argv[])
exit(1);
}
+ reset_scheduler();
+
log_fd = atoi(argv[1]);
write_fd = atoi(argv[2]);
diff --git a/ctdb/server/ctdb_lock_helper.c b/ctdb/server/ctdb_lock_helper.c
index b1515a2..709130c 100644
--- a/ctdb/server/ctdb_lock_helper.c
+++ b/ctdb/server/ctdb_lock_helper.c
@@ -107,6 +107,8 @@ int main(int argc, char *argv[])
exit(1);
}
+ reset_scheduler();
+
ppid = atoi(argv[1]);
write_fd = atoi(argv[2]);
lock_type = argv[3];