Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'dlm-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm

Pull dlm update from David Teigland:
"A single change to speed up recovery times when using SCTP
connections"

* tag 'dlm-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
dlm: set zero linger time on sctp socket

+8
+8
fs/dlm/lowcomms.c
··· 649 649 struct msghdr *msg, char *buf) 650 650 { 651 651 union sctp_notification *sn = (union sctp_notification *)buf; 652 + struct linger linger; 652 653 653 654 switch (sn->sn_header.sn_type) { 654 655 case SCTP_SEND_FAILED: ··· 727 726 return; 728 727 } 729 728 add_sock(new_con->sock, new_con); 729 + 730 + linger.l_onoff = 1; 731 + linger.l_linger = 0; 732 + ret = kernel_setsockopt(new_con->sock, SOL_SOCKET, SO_LINGER, 733 + (char *)&linger, sizeof(linger)); 734 + if (ret < 0) 735 + log_print("set socket option SO_LINGER failed"); 730 736 731 737 log_print("connecting to %d sctp association %d", 732 738 nodeid, (int)sn->sn_assoc_change.sac_assoc_id);