[Devel] [PATCH RHEL10 COMMIT] fs/fuse kio: move struct krpc_completion to the end of struct krpc_req
Konstantin Khorenko
khorenko at virtuozzo.com
Mon May 18 12:02:47 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.26.vz10
------>
commit 76a4466d2adbae6bd0dde3c04f97aaf67869f510
Author: Liu Kui <kui.liu at virtuozzo.com>
Date: Mon May 18 15:40:14 2026 +0800
fs/fuse kio: move struct krpc_completion to the end of struct krpc_req
Though the flexible array in krpc_completion is never used when embedded
in struct krpc_req, it's good practive to place flexible array member at
the end of a struct to avoid any undefined or unexpected behavior.
Fixes: 4da649462a5a4 ("fs/fuse kio: replace zero-length array with flexible array
syntax")
https://virtuozzo.atlassian.net/browse/VSTOR-130548
Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
Feature: vStorage
---
fs/fuse/kio/pcs/pcs_krpc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/fuse/kio/pcs/pcs_krpc.h b/fs/fuse/kio/pcs/pcs_krpc.h
index 766121d3a4771..96b4815abf861 100644
--- a/fs/fuse/kio/pcs/pcs_krpc.h
+++ b/fs/fuse/kio/pcs/pcs_krpc.h
@@ -131,11 +131,11 @@ struct krpc_req {
int nr_data_bvecs;
struct bio_vec data_bvecs[KRPC_MAX_DATA_PAGES];
- struct krpc_completion completion;
-
u32 gen;
struct llist_node llist_link;
struct pcs_krpc_ioc_sendmsg iocmsg;
+
+ struct krpc_completion completion;
};
static inline u32 pcs_krpc_msg_size(u32 size, u8 flags)
More information about the Devel
mailing list