1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdb-common: Changing scheduler policy does not require ctdb context

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2014-06-10 16:44:59 +10:00 committed by Martin Schwenke
parent fb0b389dc1
commit 5b580e5d65
4 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ pid_t ctdb_fork_no_free_ringbuffer(struct ctdb_context *ctdb)
/* The child does not need to be realtime */
if (ctdb->do_setsched) {
ctdb_restore_scheduler(ctdb);
ctdb_restore_scheduler();
}
ctdb->can_send_controls = false;

View File

@ -329,7 +329,7 @@ struct ctdb_rec_data *ctdb_marshall_loop_next(struct ctdb_marshall_buffer *m, st
/*
if possible, make this task real time
*/
void ctdb_set_scheduler(struct ctdb_context *ctdb)
void ctdb_set_scheduler(void)
{
#ifdef _AIX_
#if HAVE_THREAD_SETSCHED
@ -368,7 +368,7 @@ void ctdb_set_scheduler(struct ctdb_context *ctdb)
/*
restore previous scheduler parameters
*/
void ctdb_restore_scheduler(struct ctdb_context *ctdb)
void ctdb_restore_scheduler(void)
{
#ifdef _AIX_
#if HAVE_THREAD_SETSCHED

View File

@ -1087,8 +1087,8 @@ void ctdb_call_resend_all(struct ctdb_context *ctdb);
void ctdb_node_dead(struct ctdb_node *node);
void ctdb_node_connected(struct ctdb_node *node);
bool ctdb_blocking_freeze(struct ctdb_context *ctdb);
void ctdb_set_scheduler(struct ctdb_context *ctdb);
void ctdb_restore_scheduler(struct ctdb_context *ctdb);
void ctdb_set_scheduler(void);
void ctdb_restore_scheduler(void);
struct tevent_signal *ctdb_init_sigchld(struct ctdb_context *ctdb);
void ctdb_track_child(struct ctdb_context *ctdb, pid_t pid);

View File

@ -1185,7 +1185,7 @@ int ctdb_start_daemon(struct ctdb_context *ctdb, bool do_fork, bool use_syslog)
if (ctdb->do_setsched) {
/* try to set us up as realtime */
ctdb_set_scheduler(ctdb);
ctdb_set_scheduler();
}
/* ensure the socket is deleted on exit of the daemon */