[Devel] [PATCH RHEL9 COMMIT] fs/fuse kio: get the correct rpc pointer in pcs_rpc_sent_cb()
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jan 28 19:50:33 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.8
------>
commit 78870d51913bd072aa62f0b5a0b0b9d92655f3c2
Author: Liu Kui <kui.liu at virtuozzo.com>
Date: Tue Jan 28 13:43:52 2025 +0800
fs/fuse kio: get the correct rpc pointer in pcs_rpc_sent_cb()
Get the rpc pointer from the original msg instead of the cloned msg.
Because it could be NULL in the cloned msg if it is being aborted
while still sits in the rpc's input_queue.
Related to #VSTOR-98673
https://virtuozzo.atlassian.net/browse/VSTOR-98673
Fixes: 694142cae2c4 ("fuse kio: Add pcs engine combo v0.8")
Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
Feature: vStorage
---
fs/fuse/kio/pcs/pcs_rpc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/fuse/kio/pcs/pcs_rpc.c b/fs/fuse/kio/pcs/pcs_rpc.c
index 5557fc2fc9eb..9b2f09843919 100644
--- a/fs/fuse/kio/pcs/pcs_rpc.c
+++ b/fs/fuse/kio/pcs/pcs_rpc.c
@@ -1061,8 +1061,8 @@ void pcs_rpc_sent(struct pcs_msg * msg)
static void rpc_call_sent_cb(struct pcs_msg * clone)
{
- struct pcs_msg * msg = clone->private;
- struct pcs_rpc * ep = clone->rpc;
+ struct pcs_msg *msg = clone->private;
+ struct pcs_rpc *ep = msg->rpc;
BUG_ON(!mutex_is_locked(&ep->mutex));
More information about the Devel
mailing list