Whamcloud - gitweb
LU-6142 osc: tidy up osc_init() 58/49458/2
authorMr. NeilBrown <neilb@suse.de>
Tue, 20 Dec 2022 17:03:32 +0000 (12:03 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Jan 2023 15:28:20 +0000 (15:28 +0000)
commitf66b0c3b22bfcf0d7ac9383df5d87317f831a03d
treebcf95531fc40632f2129e1d420701b4640e33aea
parentd137e9823ca1e97fccee59913d5a7bf1891b825a
LU-6142 osc: tidy up osc_init()

A module_init() function that registers the services
of the module should do that last, after all other
initialization has succeeded.
This patch moves the class_register_type() call to the
end and ensures everything else that might have been
set up, is cleaned up on error.

Linux-commit: e67f133d02e ("staging: lustre: osc: tidy up osc_init()")

Change-Id: I2a5ffb116c6d7c33a4530bab6e89a5ffe6117cea
Signed-off-by: Mr. NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49458
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: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c