
dejanmm at fastmail
Nov 2, 2009, 3:46 PM
Post #2 of 2
(114 views)
Permalink
|
|
Re: [PATCH] lrmd doesn't reset scheduler and priority for children (regression, bnc#551971)
[In reply to]
|
|
Hi Tim, Applied. Many thanks for the patch. Dejan On Mon, Nov 02, 2009 at 11:56:39PM +0100, Tim Serong wrote: > # HG changeset patch > # User Tim Serong <tserong[at]novell.com> > # Date 1257201046 -3600 > # Node ID 3a99da502336e8fb9d585dd8d59a424b8976c3b9 > # Parent 2cb21b9659e161d10c731c2be80341cbc7e33f57 > lrmd doesn't reset scheduler and priority for children (regression, bnc#551971) > > diff -r 2cb21b9659e1 -r 3a99da502336 include/clplumbing/realtime.h > --- a/include/clplumbing/realtime.h Sun Nov 01 23:46:02 2009 +0100 > +++ b/include/clplumbing/realtime.h Mon Nov 02 23:30:46 2009 +0100 > @@ -17,6 +17,10 @@ > #ifndef _CLPLUMBING_REALTIME_H > # define _CLPLUMBING_REALTIME_H > # include <sched.h> > + > +#if defined(SCHED_RR) && defined(_POSIX_PRIORITY_SCHEDULING) && !defined(ON_DARWIN) > +# define DEFAULT_REALTIME SCHED_RR > +#endif > > /* > * > diff -r 2cb21b9659e1 -r 3a99da502336 lib/clplumbing/realtime.c > --- a/lib/clplumbing/realtime.c Sun Nov 01 23:46:02 2009 +0100 > +++ b/lib/clplumbing/realtime.c Mon Nov 02 23:30:46 2009 +0100 > @@ -43,10 +43,6 @@ > > static gboolean cl_realtimepermitted = TRUE; > static void cl_rtmalloc_setup(void); > - > -#if defined(SCHED_RR) && defined(_POSIX_PRIORITY_SCHEDULING) && !defined(ON_DARWIN) > -# define DEFAULT_REALTIME SCHED_RR > -#endif > > #define HOGRET 0xff > /* > diff -r 2cb21b9659e1 -r 3a99da502336 lrm/lrmd/lrmd.c > --- a/lrm/lrmd/lrmd.c Sun Nov 01 23:46:02 2009 +0100 > +++ b/lrm/lrmd/lrmd.c Mon Nov 02 23:30:46 2009 +0100 > @@ -47,6 +47,7 @@ > #include <clplumbing/uids.h> > #include <clplumbing/Gmain_timeout.h> > #include <clplumbing/cl_pidfile.h> > +#include <clplumbing/realtime.h> > #include <ha_msg.h> > #ifdef ENABLE_APPHB > # include <apphb.h> > _______________________________________________________ > Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
|