[Devel] [PATCH RHEL9 COMMIT] fs: fuse: kio: forgotten rpc xid initialization

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jul 18 20:00:33 MSK 2024


The commit is pushed to "branch-rh9-5.14.0-427.22.1.vz9.62.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.22.1.vz9.62.6
------>
commit 0e1aefd78bd9bbd74b928a00ac4ac34f2787905d
Author: Alexey Kuznetsov <kuznet at virtuozzo.com>
Date:   Wed Jul 17 00:45:35 2024 +0800

    fs: fuse: kio: forgotten rpc xid initialization
    
    The line has been lost from the very beginning. It was difficult to find
    out because being formally wrong the code was practically correct.
    New code started to rely on this and voila.
    
    https://pmc.acronis.work/browse/VSTOR-89270
    
    Fixes: b31caccfcca0 ("fuse kio: Add pcs engine combo v0.8")
    Signed-off-by: Alexey Kuznetsov <kuznet at acronis.com>
    
    Feature: vStorage
---
 fs/fuse/kio/pcs/pcs_cs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fuse/kio/pcs/pcs_cs.c b/fs/fuse/kio/pcs/pcs_cs.c
index 8deb9d77ecb0..2e16b8dabc91 100644
--- a/fs/fuse/kio/pcs/pcs_cs.c
+++ b/fs/fuse/kio/pcs/pcs_cs.c
@@ -1249,6 +1249,7 @@ static struct pcs_msg *cs_prep_probe(struct pcs_cs *cs)
 
 	m = (struct pcs_cs_map_prop *)msg_inline_head(msg);
 
+	pcs_rpc_get_new_xid(&cc_from_cs(cs)->eng, &m->hdr.h.xid);
 	m->flags = CS_MAPF_PING;
 	m->nnodes = 1;
 	m->nodes[0].state     = CS_OBJ_UNKNOWN;


More information about the Devel mailing list