Convert LOV to use LU device init/fini rather
than the legacy OBD API.
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ia289e7f0ab31763db258f0c688c7324d737b3f52
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58828
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
struct lov_device *ld = lu2lov_dev(d);
const int nr = ld->ld_target_nr;
+ lov_cleanup(d->ld_obd);
+
lu_site_fini(&ld->ld_site);
cl_device_fini(lu2cl_dev(d));
int lov_connect_obd(struct obd_device *obd, u32 index, int activate,
struct obd_connect_data *data);
int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg);
+int lov_cleanup(struct obd_device *obd);
int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg,
u32 *indexp, int *genp);
int lov_del_target(struct obd_device *obd, u32 index,
return rc;
}
-static int lov_cleanup(struct obd_device *obd)
+int lov_cleanup(struct obd_device *obd)
{
struct lu_tgt_descs *ltd = &obd->u.lov.lov_ost_descs;
struct lov_obd *lov = &obd->u.lov;
static const struct obd_ops lov_obd_ops = {
.o_owner = THIS_MODULE,
- .o_setup = lov_setup,
- .o_cleanup = lov_cleanup,
.o_connect = lov_connect,
.o_disconnect = lov_disconnect,
.o_statfs = lov_statfs,