Whamcloud - gitweb
LU-6245 utils: split kernel comm between user and kernel 70/14270/7
authorFrank Zago <fzago@cray.com>
Mon, 30 Mar 2015 20:23:21 +0000 (15:23 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 20 Apr 2015 23:15:30 +0000 (23:15 +0000)
commitfd44a6d8c71e59ed54b36b2b15e2bdd2b9a74d38
tree18ecf7c887fe5395dc9ad4b7e939a0f6dfdbdb9a
parenta4bcfa9c49abae8035b05d94a09352aae01bd77d
LU-6245 utils: split kernel comm between user and kernel

The kernel communication code used for HSM and changelog is
entangled. Move the user space bits into the liblustreapi. This will
also help for a possible relicensing. The kernel portion is also moved
from libcfs to obdclass.

The original libcfs_kernelcomm.h header is split into three parts:

  * lustre_kernelcomm.h, a new header for the kernel parts;
  * uapi_kernelcomm.h, a new header for the data structures shared
    between userspace and kernelspace;
  * lustreapi_internal.h receives the private liblustreapi prototypes.

The original code in kernel_user_comm.c is split into two parts:

  * obdclass/kernelcomm.c for the kernel part. filp_user_write() was
    moved there, and linux-fs.c deleted;
  * liblustreapi_kernelconn.c for the user part. The calls to CDEBUG
    have been removed, and calls to CERROR have been transformed to
    llapi_err_noerrno. The type lustre_kernelcomm has been removed and
    replace by struct lustre_kernelcomm.

Various names and filenames have been harmonized to *kernelcomm*.

The unused symbol KUC_FL_BLOCK has been removed.

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: Id15ab6ea23a160e0aa0517a1a890266b2e971982
Reviewed-on: http://review.whamcloud.com/14270
Tested-by: Jenkins
Reviewed-by: Nathan Rutman <nathan.rutman@seagate.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
25 files changed:
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_kernelcomm.h [deleted file]
libcfs/include/libcfs/linux/linux-fs.h
libcfs/libcfs/Makefile.in
libcfs/libcfs/autoMakefile.am
libcfs/libcfs/kernel_user_comm.c [deleted file]
libcfs/libcfs/linux/Makefile.am
libcfs/libcfs/linux/linux-fs.c [deleted file]
lustre/include/Makefile.am
lustre/include/lustre_kernelcomm.h [new file with mode: 0644]
lustre/include/uapi_kernelcomm.h [new file with mode: 0644]
lustre/llite/dir.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/obdclass/Makefile.in
lustre/obdclass/genops.c
lustre/obdclass/kernelcomm.c [new file with mode: 0644]
lustre/utils/Makefile.am
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_hsm.c
lustre/utils/liblustreapi_kernelconn.c [new file with mode: 0644]
lustre/utils/lustreapi_internal.h