Merge tag 'dlm-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm
Merge commit. Changes below are compared with the first parent: 81d8e5e2.
Changes
4 files changed · +6 −4
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| fs/dlm/config.h | modified | +1 | −1 | View file |
| fs/dlm/lock.c | modified | +2 | −0 | View file |
| fs/dlm/lockspace.c | modified | +1 | −1 | View file |
| fs/dlm/lowcomms.c | modified | +2 | −2 | View file |
fs/dlm/config.h
View filediff --git a/fs/dlm/config.h b/fs/dlm/config.h
index e48c4f9..13a3d0b 100644
--- a/fs/dlm/config.h
+++ b/fs/dlm/config.h
@@ -23,7 +23,7 @@ struct dlm_config_node {
extern const struct rhashtable_params dlm_rhash_rsb_params;
-#define DLM_MAX_ADDR_COUNT 3
+#define DLM_MAX_ADDR_COUNT 8
#define DLM_PROTO_TCP 0
#define DLM_PROTO_SCTP 1
fs/dlm/lock.c
View filediff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index c8ff88f..e01d5f2 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -741,6 +741,7 @@ static int find_rsb_dir(struct dlm_ls *ls, const void *name, int len,
read_lock_bh(&ls->ls_rsbtbl_lock);
if (!rsb_flag(r, RSB_HASHED)) {
read_unlock_bh(&ls->ls_rsbtbl_lock);
+ error = -EBADR;
goto do_new;
}
@@ -784,6 +785,7 @@ static int find_rsb_dir(struct dlm_ls *ls, const void *name, int len,
}
} else {
write_unlock_bh(&ls->ls_rsbtbl_lock);
+ error = -EBADR;
goto do_new;
}
fs/dlm/lockspace.c
View filediff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 8afac6e..1929327 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -576,7 +576,7 @@ static int new_lockspace(const char *name, const char *cluster,
lockspace to start running (via sysfs) in dlm_ls_start(). */
error = do_uevent(ls, 1);
- if (error)
+ if (error < 0)
goto out_recoverd;
/* wait until recovery is successful or failed */
fs/dlm/lowcomms.c
View filediff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index d281418..70abd4d 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -1826,8 +1826,8 @@ static int dlm_tcp_listen_validate(void)
{
/* We don't support multi-homed hosts */
if (dlm_local_count > 1) {
- log_print("TCP protocol can't handle multi-homed hosts, try SCTP");
- return -EINVAL;
+ log_print("Detect multi-homed hosts but use only the first IP address.");
+ log_print("Try SCTP, if you want to enable multi-link.");
}
return 0;