git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21a4de
)
ctdb-locking: Avoid real-time in lock helper if nosetsched option is set
author
Amitay Isaacs
<amitay@gmail.com>
Fri, 17 Jun 2016 08:35:18 +0000
(18:35 +1000)
committer
Michael Adam
<obnox@samba.org>
Mon, 20 Jun 2016 14:21:19 +0000
(16:21 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/server/ctdb_lock.c
patch
|
blob
|
history
diff --git
a/ctdb/server/ctdb_lock.c
b/ctdb/server/ctdb_lock.c
index 7962e94801fb3a21d17a4363f2eb6814db0c36d8..8f3a18d4518957fac8604a2690ce2ae416bd1253 100644
(file)
--- a/
ctdb/server/ctdb_lock.c
+++ b/
ctdb/server/ctdb_lock.c
@@
-845,6
+845,14
@@
static void ctdb_lock_schedule(struct ctdb_context *ctdb)
return;
}
+ if (! ctdb->do_setsched) {
+ ret = setenv("CTDB_NOSETSCHED", "1", 1);
+ if (ret != 0) {
+ DEBUG(DEBUG_WARNING,
+ ("Failed to set CTDB_NOSETSCHED variable\n"));
+ }
+ }
+
/* Create arguments for lock helper */
if (!lock_helper_args(tmp_ctx, lock_ctx, lock_ctx->fd[1],
&argc, &args)) {