[Devel] [PATCH RHEL9 COMMIT] fs/fuse kio: remove BUG_ON() in pcs_mrset_fini()
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Apr 30 12:41:46 MSK 2025
The commit is pushed to "branch-rh9-5.14.0-427.44.1.vz9.80.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.44.1.vz9.80.31
------>
commit 19b0babc2ef5e3281ff4a8b464da6364d47e1457
Author: Liu Kui <kui.liu at virtuozzo.com>
Date: Mon Apr 28 13:57:12 2025 +0800
fs/fuse kio: remove BUG_ON() in pcs_mrset_fini()
Remove the BUG_ON check as itself is a bug.
Fixes: 48f7ae56ed7fd ("fs/fuse kio: implement memory region to support
zero-copy between userspace and kernel.")
https://virtuozzo.atlassian.net/browse/VSTOR-105104
Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
Acked-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Feature: fuse: kRPC - single RPC for kernel and userspace
---
fs/fuse/kio/pcs/pcs_mr.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/fuse/kio/pcs/pcs_mr.c b/fs/fuse/kio/pcs/pcs_mr.c
index 9d83782bd9157..cbd3b440dd1b8 100644
--- a/fs/fuse/kio/pcs/pcs_mr.c
+++ b/fs/fuse/kio/pcs/pcs_mr.c
@@ -193,7 +193,6 @@ void pcs_mrset_fini(struct pcs_mr_set *mrs)
/*clean all registered MRs*/
xa_for_each(&mrs->mr_xa, idx, mr) {
- BUG_ON(kref_read(&mr->ref) != 1);
pcs_mr_put(mr);
atomic_dec(&mrs->mr_num);
}
More information about the Devel
mailing list