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

Konstantin Khorenko khorenko at virtuozzo.com
Tue Sep 16 15:20:53 MSK 2025


The commit is pushed to "branch-rh9-5.14.0-427.77.1.vz9.86.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.77.1.vz9.86.7
------>
commit c8a11eef6dcc46913440d990182120f0c20fd7e8
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 e8c924c1a5da4..0b47afb9bb015 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