diff options
| author | Amitay Isaacs <amitay@gmail.com> | 2014-06-10 16:44:59 +1000 |
|---|---|---|
| committer | Martin Schwenke <martins@samba.org> | 2014-06-12 05:40:10 +0200 |
| commit | 5b580e5d65ac5dce9dc07aba4fe1f31226a66ed8 (patch) | |
| tree | e7ea6f99139d2810dce8bac6d892abc9308e7153 /ctdb/common | |
| parent | fb0b389dc17ee4626f07f2056edecddc51286281 (diff) | |
| download | samba-5b580e5d65ac5dce9dc07aba4fe1f31226a66ed8.tar.gz samba-5b580e5d65ac5dce9dc07aba4fe1f31226a66ed8.tar.xz samba-5b580e5d65ac5dce9dc07aba4fe1f31226a66ed8.zip | |
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>
Diffstat (limited to 'ctdb/common')
| -rw-r--r-- | ctdb/common/ctdb_fork.c | 2 | ||||
| -rw-r--r-- | ctdb/common/ctdb_util.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/common/ctdb_fork.c b/ctdb/common/ctdb_fork.c index 1d7d9aa278..1343fd7261 100644 --- a/ctdb/common/ctdb_fork.c +++ b/ctdb/common/ctdb_fork.c @@ -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; diff --git a/ctdb/common/ctdb_util.c b/ctdb/common/ctdb_util.c index 4fe411fa39..b2f0ee72af 100644 --- a/ctdb/common/ctdb_util.c +++ b/ctdb/common/ctdb_util.c @@ -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 |
