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

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

Pull dlm updates from David Teigland:

- two fixes to the recent rcu lookup optimizations

- a change allowing TCP to be configured with the first of multiple IP
address

* tag 'dlm-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
dlm: make tcp still work in multi-link env
dlm: fix error if active rsb is not hashed
dlm: fix error if inactive rsb is not hashed
dlm: prevent NPD when writing a positive value to event_done
dlm: increase max number of links for corosync3/knet

+6 -4
+1 -1
fs/dlm/config.h
··· 23 23 24 24 extern const struct rhashtable_params dlm_rhash_rsb_params; 25 25 26 - #define DLM_MAX_ADDR_COUNT 3 26 + #define DLM_MAX_ADDR_COUNT 8 27 27 28 28 #define DLM_PROTO_TCP 0 29 29 #define DLM_PROTO_SCTP 1
+2
fs/dlm/lock.c
··· 741 741 read_lock_bh(&ls->ls_rsbtbl_lock); 742 742 if (!rsb_flag(r, RSB_HASHED)) { 743 743 read_unlock_bh(&ls->ls_rsbtbl_lock); 744 + error = -EBADR; 744 745 goto do_new; 745 746 } 746 747 ··· 785 784 } 786 785 } else { 787 786 write_unlock_bh(&ls->ls_rsbtbl_lock); 787 + error = -EBADR; 788 788 goto do_new; 789 789 } 790 790
+1 -1
fs/dlm/lockspace.c
··· 576 576 lockspace to start running (via sysfs) in dlm_ls_start(). */ 577 577 578 578 error = do_uevent(ls, 1); 579 - if (error) 579 + if (error < 0) 580 580 goto out_recoverd; 581 581 582 582 /* wait until recovery is successful or failed */
+2 -2
fs/dlm/lowcomms.c
··· 1826 1826 { 1827 1827 /* We don't support multi-homed hosts */ 1828 1828 if (dlm_local_count > 1) { 1829 - log_print("TCP protocol can't handle multi-homed hosts, try SCTP"); 1830 - return -EINVAL; 1829 + log_print("Detect multi-homed hosts but use only the first IP address."); 1830 + log_print("Try SCTP, if you want to enable multi-link."); 1831 1831 } 1832 1832 1833 1833 return 0;