Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377717
b: refs/heads/master
c: 86e92ad
h: refs/heads/master
i:
  377715: 6d02a15
v: v3
  • Loading branch information
Mike Christie authored and David Teigland committed Jun 14, 2013
1 parent 7b5a1f9 commit 3a15f5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d6898714fe2ce485e95ac74479ed40ebd8d5748
refs/heads/master: 86e92ad299fb0be359efdd61812944497d4d8d52
6 changes: 6 additions & 0 deletions trunk/fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ static int sctp_listen_for_all(void)
int result = -EINVAL, num = 1, i, addr_len;
struct connection *con = nodeid2con(0, GFP_NOFS);
int bufsize = NEEDED_RMEM;
int one = 1;

if (!con)
return -ENOMEM;
Expand Down Expand Up @@ -1380,6 +1381,11 @@ static int sctp_listen_for_all(void)
goto create_delsock;
}

result = kernel_setsockopt(sock, SOL_SCTP, SCTP_NODELAY, (char *)&one,
sizeof(one));
if (result < 0)
log_print("Could not set SCTP NODELAY error %d\n", result);

/* Init con struct */
sock->sk->sk_user_data = con;
con->sock = sock;
Expand Down

0 comments on commit 3a15f5d

Please sign in to comment.