[Devel] [PATCH RHEL8 COMMIT] fuse/pcs: missing initialization of client role

Konstantin Khorenko khorenko at virtuozzo.com
Tue Jun 22 13:17:01 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.47
------>
commit 6ee4dc00eff3616e01bcc22b0401f2f28d647eb2
Author: Alexey Kuznetsov <kuznet at acronis.com>
Date:   Tue Jun 22 04:35:42 2021 +0000

    fuse/pcs: missing initialization of client role
    
    Luckily, the effect is not fatal, just IO statistics is not counted.
    
    The bug appeared first in vz7, when rdma support was implemented.
    The patch should be backported, though the bug is not so critical
    to make this urgently.
    
    Affects: #VSTOR-44526
    To_merge: 50bda80d4f2d ("fs/fuse kio: make pcs auth socket independent")
    
    Signed-off-by: Alexey Kuznetsov <kuznet at acronis.com>
---
 fs/fuse/kio/pcs/pcs_auth.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/kio/pcs/pcs_auth.c b/fs/fuse/kio/pcs/pcs_auth.c
index b42fdb3f7c9b..68952323e272 100644
--- a/fs/fuse/kio/pcs/pcs_auth.c
+++ b/fs/fuse/kio/pcs/pcs_auth.c
@@ -295,6 +295,7 @@ static int send_auth_msg(struct pcs_rpc *ep, void *data, size_t size, int state)
 		.cluster_id = eng->cluster_id,
 		.sender_id = eng->local_id,
 		.recipient_id = ep->peer_id,
+		.sender_role = PCS_NODE_ROLE_CN,
 		.recipient_role = ep->peer_role,
 		.version = PCS_VERSION_CURRENT,
 		.state = state,


More information about the Devel mailing list