[Devel] [PATCH VZ9 v2 0/4] fs/fuse kio: introduce pcs_krpc for merging userspace RPC in vstorage-mount with kernel RPC.

Liu Kui kui.liu at virtuozzo.com
Tue Jul 2 18:26:05 MSK 2024


Implement pcs_krpc in kio module to support using kernel RPC directly
from userspace. 

https://pmc.acronis.work/browse/VSTOR-82613

v1: Resend in proper way. 
    Fixed issues found from review.
    Fixed bugs found in test due to improper connection state transition.

v2: Fixed deadlock in pcs_krpc 

Liu Kui (4):
  fs/fuse kio: implement memory region to support zero-copy between
    userspace and kernel.
  fs/fuse kio: implement pcs_krpc - export kernel RPC to userspace
  fs/fuse kio: adapt pcs_rpc to support pcs_krpc.
  fs/fuse kio: integrate pcs_krpc to kio module

 fs/fuse/Makefile                   |   6 +-
 fs/fuse/dev.c                      |  19 +-
 fs/fuse/fuse_i.h                   |   2 +-
 fs/fuse/kio/pcs/pcs_cluster_core.c |   4 +
 fs/fuse/kio/pcs/pcs_cs.c           | 120 +----
 fs/fuse/kio/pcs/pcs_cs.h           |   5 +-
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c |  94 +++-
 fs/fuse/kio/pcs/pcs_ioctl.h        |  29 +
 fs/fuse/kio/pcs/pcs_krpc.c         | 815 +++++++++++++++++++++++++++++
 fs/fuse/kio/pcs/pcs_krpc.h         | 144 +++++
 fs/fuse/kio/pcs/pcs_krpc_prot.h    |  44 ++
 fs/fuse/kio/pcs/pcs_mr.c           | 202 +++++++
 fs/fuse/kio/pcs/pcs_mr.h           |  62 +++
 fs/fuse/kio/pcs/pcs_req.h          |  28 +-
 fs/fuse/kio/pcs/pcs_rpc.c          |   3 +-
 fs/fuse/kio/pcs/pcs_rpc.h          |   4 +-
 fs/fuse/kio/pcs/pcs_rpc_clnt.c     | 185 +++++++
 fs/fuse/kio/pcs/pcs_rpc_clnt.h     |  13 +
 18 files changed, 1661 insertions(+), 118 deletions(-)
 create mode 100644 fs/fuse/kio/pcs/pcs_krpc.c
 create mode 100644 fs/fuse/kio/pcs/pcs_krpc.h
 create mode 100644 fs/fuse/kio/pcs/pcs_krpc_prot.h
 create mode 100644 fs/fuse/kio/pcs/pcs_mr.c
 create mode 100644 fs/fuse/kio/pcs/pcs_mr.h
 create mode 100644 fs/fuse/kio/pcs/pcs_rpc_clnt.c
 create mode 100644 fs/fuse/kio/pcs/pcs_rpc_clnt.h

-- 
2.39.3 (Apple Git-146)



More information about the Devel mailing list