Skip to content

Commit 0de1e84

Browse files
committed
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
2 parents 81d8e5e + 03d2b62 commit 0de1e84

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

fs/dlm/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct dlm_config_node {
2323

2424
extern const struct rhashtable_params dlm_rhash_rsb_params;
2525

26-
#define DLM_MAX_ADDR_COUNT 3
26+
#define DLM_MAX_ADDR_COUNT 8
2727

2828
#define DLM_PROTO_TCP 0
2929
#define DLM_PROTO_SCTP 1

fs/dlm/lock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ static int find_rsb_dir(struct dlm_ls *ls, const void *name, int len,
741741
read_lock_bh(&ls->ls_rsbtbl_lock);
742742
if (!rsb_flag(r, RSB_HASHED)) {
743743
read_unlock_bh(&ls->ls_rsbtbl_lock);
744+
error = -EBADR;
744745
goto do_new;
745746
}
746747

@@ -784,6 +785,7 @@ static int find_rsb_dir(struct dlm_ls *ls, const void *name, int len,
784785
}
785786
} else {
786787
write_unlock_bh(&ls->ls_rsbtbl_lock);
788+
error = -EBADR;
787789
goto do_new;
788790
}
789791

fs/dlm/lockspace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ static int new_lockspace(const char *name, const char *cluster,
576576
lockspace to start running (via sysfs) in dlm_ls_start(). */
577577

578578
error = do_uevent(ls, 1);
579-
if (error)
579+
if (error < 0)
580580
goto out_recoverd;
581581

582582
/* wait until recovery is successful or failed */

fs/dlm/lowcomms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,8 +1826,8 @@ static int dlm_tcp_listen_validate(void)
18261826
{
18271827
/* We don't support multi-homed hosts */
18281828
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.");
18311831
}
18321832

18331833
return 0;

0 commit comments

Comments
 (0)