Whamcloud - gitweb
LU-18162 obdclass: create ldto wrappers and default LU allocator 83/58783/3
authorTimothy Day <timday@amazon.com>
Mon, 14 Apr 2025 20:16:20 +0000 (20:16 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 2 May 2025 02:20:00 +0000 (02:20 +0000)
commitd04233bbdcb04780b10cae9de5e4d78c23cfca73
tree9efddf407c6d98fdb3c15955079229866c145583
parent61557af677c506f3a130b12fb356ae278f33f2ac
LU-18162 obdclass: create ldto wrappers and default LU allocator

Wrap calls to ldto_device_* methods with small wrapper functions.
This allows for default behavior to be defined when the ldto_device_*
methods are not defined.

Define a default allocator when ldto_device_alloc and ldto_device_free
are not provided. This will allow many of the simplier OBD devices
to be fully converted to LU devices without as much boilerplate.

Similarly, allow ldto_device_init/fini to be optional.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Iac40138a31a0eef9a2100f958be8e00849301e46
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58783
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/include/obd_class.h
lustre/llite/vvp_dev.c
lustre/lov/lovsub_dev.c
lustre/obdclass/cl_object.c
lustre/obdclass/lu_object.c
lustre/obdecho/echo_client.c