Whamcloud - gitweb
LU-12514 target: move server mount code to target layer 60/47160/6
authorJames Simmons <jsimmons@infradead.org>
Mon, 6 Jun 2022 14:48:24 +0000 (10:48 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 1 Sep 2022 05:53:08 +0000 (05:53 +0000)
commitfab404836d9eff7cfe61dc280a7854608894f645
tree3b7634d7e21b965acc11c8df13e4074fa1b9e9c7
parentf1c8ac1156ebea2b8e94a75f056c403973bb9010
LU-12514 target: move server mount code to target layer

Currently the server mount code for lustre_tgt is all in obdclass. If
we change the stack to initialize the LNet / ptlrpc layer after mounting
then we will end up with modular circular dependencies. To avoid this
move all the lustre_tgt mounting code to the target layer. This way the
mounting code can use both ptlrpc and obdclass module routiens. Also include
MODULE_ALAIS("lustre_tgt") so mount -t lustre_tgt will load ptlrpc which
contains the target layer.

Change-Id: I392602e8fd18d001cb97b05b909c366ba5b8fa82
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/47160
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
lustre/include/obd_class.h
lustre/obdclass/Makefile.in
lustre/obdclass/class_obd.c
lustre/obdclass/genops.c
lustre/obdclass/llog_swab.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/ptlrpc/Makefile.in
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/ptlrpc_module.c
lustre/target/Makefile.am
lustre/target/tgt_internal.h
lustre/target/tgt_main.c
lustre/target/tgt_mount.c [moved from lustre/obdclass/obd_mount_server.c with 100% similarity]