Procházet zdrojové kódy

Under load, it was observed that the token could be lost because the
totem protocol was not being scheduled above the other I/O processes.
This patch reinstalls the sched_setscheduler call which for some reason
was commented out.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1051 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake před 20 roky
rodič
revize
45e249b91b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      exec/main.c

+ 1 - 1
exec/main.c

@@ -265,7 +265,7 @@ static void aisexec_setscheduler (void)
 	res = sched_get_priority_max (SCHED_RR);
 	if (res != -1) {
 		sched_param.sched_priority = res;
-//		res = sched_setscheduler (0, SCHED_RR, &sched_param);
+		res = sched_setscheduler (1, SCHED_RR, &sched_param);
 		if (res == -1) {
 			log_printf (LOG_LEVEL_WARNING, "Could not set SCHED_RR at priority %d: %s\n",
 				sched_param.sched_priority, strerror (errno));