[Devel] [PATCH RHEL10 COMMIT] Revert "fs/fuse kio: add debug info to catch unexpected event"

Konstantin Khorenko khorenko at virtuozzo.com
Tue Sep 16 15:04:10 MSK 2025


The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.6.vz10
------>
commit 95c9748f27ec049d56c53405462596a75269b7fc
Author: Liu Kui <kui.liu at virtuozzo.com>
Date:   Mon Sep 15 23:03:22 2025 +0800

    Revert "fs/fuse kio: add debug info to catch unexpected event"
    
    This reverts commit 27e40ca227ea39524ae113f26bee021cac2eecb8.
    
    The debug info is no longer needed as we can now confirm that the
    catched event is legitimate. So we will let the userspace to handle
    it.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-107235
    Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
    
    Feature: fuse: kRPC - single RPC for kernel and userspace
---
 fs/fuse/kio/pcs/pcs_krpc.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_krpc.c b/fs/fuse/kio/pcs/pcs_krpc.c
index a4c1e2c3b075f..374cbce9c3c4a 100644
--- a/fs/fuse/kio/pcs/pcs_krpc.c
+++ b/fs/fuse/kio/pcs/pcs_krpc.c
@@ -85,17 +85,10 @@ static void krpc_req_complete(struct krpc_req *kreq, int error)
 {
 	struct krpc_completion *comp = &kreq->completion;
 	struct pcs_krpc *krpc = kreq->krpc;
-	struct pcs_rpc_hdr *h = (struct pcs_rpc_hdr *)kreq->hdr_buf;
 
 	BUG_ON(!comp->xid);
 
 	comp->result = error;
-	if (!comp->result && !(RPC_IS_RESPONSE(h->type))) {
-		/*
-		 * This should never happen, catch the event if it happens.
-		 */
-		WARN_ON_ONCE(1);
-	}
 
 	kreq_release_data_chunks(kreq);
 	if (kreq->hdr_chunk.mr)


More information about the Devel mailing list