The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will 
appear at g...@bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.44.1.vz9.80.15
------>
commit 56e7b93c610ee24d3c640f43abcbdb0527a3148f
Author: Liu Kui <kui....@virtuozzo.com>
Date:   Fri Feb 14 00:49:53 2025 +0800

    fs/fuse kio: destruct fuse ktrace at the end of kio destruction
    
    Apparently ktrace could still be used during kio destruction. An absence
    of ktrace can trigger the WARN_ON check in pcs_rpc_report_error(). While
    it's not fatal functionally, it does fail testcases, so fix it here.
    
    Related to #VSTOR-99621
    https://virtuozzo.atlassian.net/browse/VSTOR-99621
    
    Signed-off-by: Liu Kui <kui....@virtuozzo.com>
    Acked-by: Alexey Kuznetsov <kuz...@virtuozzo.com>
    
    Feature: vStorage
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c 
b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index 0aeb166eecb1..8da9550cc156 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -297,9 +297,6 @@ static void kpcs_conn_fini(struct fuse_mount *fm)
 {
        struct fuse_conn *fc = fm->fc;
 
-       if (fc->ktrace)
-               fuse_ktrace_remove(fc);
-
        if (!fc->kio.ctx)
                return;
 
@@ -310,6 +307,9 @@ static void kpcs_conn_fini(struct fuse_mount *fm)
        flush_workqueue(pcs_cpu_wq);
        flush_workqueue(pcs_cleanup_wq);
        pcs_cluster_fini((struct pcs_fuse_cluster *) fc->kio.ctx);
+
+       if (fc->ktrace)
+               fuse_ktrace_remove(fc);
 }
 
 static void kpcs_conn_abort(struct fuse_conn *fc)
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to