Whamcloud - gitweb
LU-9859 libcfs: migrate libcfs_mem.c to lnet/lib-mem.c 65/56765/6
authorJames Simmons <jsimmons@infradead.org>
Fri, 25 Oct 2024 19:51:04 +0000 (12:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Nov 2024 06:29:35 +0000 (06:29 +0000)
commitea07b1ea9eba55b5385acfe5cd6cbbec40b0f8d4
tree740212221d5c074655f3443b273bad481800a115
parentf9217c074f1099510dc0fa11d0cbf8dcab198776
LU-9859 libcfs: migrate libcfs_mem.c to lnet/lib-mem.c

Move the libcfs_mem.c code to the LNet core. The prototypes are declared in libcfs_cpu.h
but we don't move them yet since the CPT code depends on the libcfs_mem.c work. This can
end up in a modular cyclic dependency if we move the CPT work right away so limit what is
changed at this point.

Lustre-change: https://review.whamcloud.com/52701
Lustre-commit: 24d515367f44de6b92b453cc9a1c8384e52b5e3f

LU-9859 lnet: move CPT handling to LNet

The CPT work is used for LNet and ptlrpc which is the Lustre LNet
interface. Move this work there and merge the lib-mem.c code as
well since they both work closely together. Move cpt debugfs
handling from libcfs to lnet. Now all remaining debugfs in libcfs
is for debugging.

Lustre-change: https://review.whamcloud.com/52923
Lustre-commit: 7f8cde3b77ada95e8b96dee1996f8d40bd17a538

LU-9859 libcfs: remove workitem.

There are no more users of the "workitem" code so it can be removed.
Lustre uses Linux workqueues instead.

Lustre-change: https://review.whamcloud.com/50462
Lustre-commit: 1782884fa247da0c1400ee6307596b64d6aaa440

Test-Parameters: trivial
Change-Id: I6bf5cd9f20033f988dde1989f0fc5f89ea74b5a2
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56765
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
17 files changed:
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_workitem.h [deleted file]
libcfs/libcfs/Makefile.in
libcfs/libcfs/autoMakefile.am
libcfs/libcfs/libcfs_mem.c [deleted file]
libcfs/libcfs/module.c
libcfs/libcfs/workitem.c [deleted file]
lnet/include/lnet/Makefile.am
lnet/include/lnet/lib-cpt.h [moved from libcfs/include/libcfs/libcfs_cpu.h with 97% similarity]
lnet/include/lnet/lib-lnet.h
lnet/lnet/Makefile.in
lnet/lnet/autoMakefile.am
lnet/lnet/lib-cpt.c [moved from libcfs/libcfs/libcfs_cpu.c with 92% similarity]
lnet/lnet/lnet_debugfs.c [moved from lnet/lnet/router_proc.c with 92% similarity]
lnet/lnet/module.c
lustre/include/obd_support.h