This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master in repository sanlock.
The following commit(s) were added to refs/heads/master by this push: new bf8058b sanlock: use default max_sectors_kb 1024 bf8058b is described below
commit bf8058be781e23a8d2c2b99581faaf46a8d258b5 Author: David Teigland teigland@redhat.com AuthorDate: Tue Nov 27 12:32:40 2018 -0600
sanlock: use default max_sectors_kb 1024
By default set max_sectors_kb to perform 1 MiB read ios. --- src/cmd.c | 6 ++++++ src/main.c | 3 +++ src/sanlock_internal.h | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/cmd.c b/src/cmd.c index 40079af..d816fd7 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2260,6 +2260,9 @@ static int print_state_daemon(char *str) "gid=%d " "uid=%d " "sh_retries=%d " + "max_sectors_kb_ignore=%d " + "max_sectors_kb_align=%d " + "max_sectors_kb_num=%d " "use_aio=%d " "kill_grace_seconds=%d " "helper_pid=%d " @@ -2281,6 +2284,9 @@ static int print_state_daemon(char *str) com.gid, com.uid, com.sh_retries, + com.max_sectors_kb_ignore, + com.max_sectors_kb_align, + com.max_sectors_kb_num, main_task.use_aio, kill_grace_seconds, helper_pid, diff --git a/src/main.c b/src/main.c index 6cbc7bf..b3898e2 100644 --- a/src/main.c +++ b/src/main.c @@ -3669,6 +3669,9 @@ int main(int argc, char *argv[]) com.renewal_read_extend_sec = 0; com.renewal_history_size = DEFAULT_RENEWAL_HISTORY_SIZE; com.paxos_debug_all = 0; + com.max_sectors_kb_ignore = DEFAULT_MAX_SECTORS_KB_IGNORE; + com.max_sectors_kb_align = DEFAULT_MAX_SECTORS_KB_ALIGN; + com.max_sectors_kb_num = DEFAULT_MAX_SECTORS_KB_NUM;
if (getgrnam("sanlock") && getpwnam("sanlock")) { com.uname = (char *)"sanlock"; diff --git a/src/sanlock_internal.h b/src/sanlock_internal.h index ebf9946..3a09b62 100644 --- a/src/sanlock_internal.h +++ b/src/sanlock_internal.h @@ -330,9 +330,9 @@ EXTERN struct client *client; #define DEFAULT_QUIET_FAIL 1 #define DEFAULT_RENEWAL_HISTORY_SIZE 180 /* about 1 hour with 20 sec renewal interval */
-#define DEFAULT_MAX_SECTORS_KB_IGNORE 1 /* don't change it */ -#define DEFAULT_MAX_SECTORS_KB_ALIGN 0 /* set it to align size */ -#define DEFAULT_MAX_SECTORS_KB_NUM 0 /* set it to num KB for all lockspaces */ +#define DEFAULT_MAX_SECTORS_KB_IGNORE 0 /* don't change it */ +#define DEFAULT_MAX_SECTORS_KB_ALIGN 0 /* set it to align size */ +#define DEFAULT_MAX_SECTORS_KB_NUM 1024 /* set it to num KB for all lockspaces */
struct command_line { int type; /* COM_ */
sanlock-devel@lists.fedorahosted.org