All of lore.kernel.org
 help / color / mirror / Atom feed
From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group daemon/main.c dlm_controld/main. ...
Date: 15 Nov 2006 14:44:03 -0000	[thread overview]
Message-ID: <20061115144403.9390.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	teigland at sourceware.org	2006-11-15 14:44:02

Modified files:
	group/daemon   : main.c 
	group/dlm_controld: main.c 
	group/gfs_controld: main.c 

Log message:
	fix sched_priority from sdake

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.51.2.1&r2=1.51.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6&r2=1.6.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.18.2.2&r2=1.18.2.3

--- cluster/group/daemon/main.c	2006/11/09 15:51:01	1.51.2.1
+++ cluster/group/daemon/main.c	2006/11/15 14:44:01	1.51.2.2
@@ -136,6 +136,8 @@
 	char *argv[4];
 	int status, rv = 0;
 
+	/* FIXME: ignore gfs/gfs2 nolock fs's */
+
 	rv += kernel_instance_count("/sys/kernel/dlm");
 	rv += kernel_instance_count("/sys/fs/gfs");
 	rv += kernel_instance_count("/sys/fs/gfs2");
@@ -907,7 +909,7 @@
 
 	rv = sched_get_priority_max(SCHED_RR);
 	if (rv != -1) {
-		sched_param.sched_priority = 2;
+		sched_param.sched_priority = rv;
 		rv = sched_setscheduler(0, SCHED_RR, &sched_param);
 		if (rv == -1)
 			log_print("could not set SCHED_RR priority %d err %d",
--- cluster/group/dlm_controld/main.c	2006/10/24 16:16:31	1.6
+++ cluster/group/dlm_controld/main.c	2006/11/15 14:44:02	1.6.2.1
@@ -389,7 +389,6 @@
 	}
 }
 
-#if 0
 void set_scheduler(void)
 {
 	struct sched_param sched_param;
@@ -397,7 +396,7 @@
 
 	rv = sched_get_priority_max(SCHED_RR);
 	if (rv != -1) {
-		sched_param.sched_priority = 2;
+		sched_param.sched_priority = rv;
 		rv = sched_setscheduler(0, SCHED_RR, &sched_param);
 		if (rv == -1)
 			log_error("could not set SCHED_RR priority %d err %d",
@@ -407,7 +406,6 @@
 			  errno);
 	}
 }
-#endif
 
 int main(int argc, char **argv)
 {
@@ -420,9 +418,7 @@
 	if (!daemon_debug_opt)
 		daemonize();
 
-#if 0
 	set_scheduler();
-#endif
 
 	return loop();
 }
--- cluster/group/gfs_controld/main.c	2006/11/14 21:06:35	1.18.2.2
+++ cluster/group/gfs_controld/main.c	2006/11/15 14:44:02	1.18.2.3
@@ -669,7 +669,7 @@
 
 	rv = sched_get_priority_max(SCHED_RR);
 	if (rv != -1) {
-		sched_param.sched_priority = 2;
+		sched_param.sched_priority = rv;
 		rv = sched_setscheduler(0, SCHED_RR, &sched_param);
 		if (rv == -1)
 			log_error("could not set SCHED_RR priority %d err %d",



             reply	other threads:[~2006-11-15 14:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15 14:44 teigland [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15 14:44 [Cluster-devel] cluster/group daemon/main.c dlm_controld/main. teigland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061115144403.9390.qmail@sourceware.org \
    --to=teigland@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.