From: Alex Zhuravlev Date: Wed, 29 Nov 2017 16:02:46 +0000 (+0300) Subject: LU-10296 obdclass: no errors on missing o_cleanup X-Git-Tag: 2.10.56~1 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=063a83ab1fe518e52dbc7fb5f6e9d092b20f44e9 LU-10296 obdclass: no errors on missing o_cleanup it's legal to have o_cleanup undefined. Change-Id: Ifd80dbd36fabcbfbd9a1609746d79a37e5a01023 Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/30314 Tested-by: Jenkins Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger Tested-by: Maloo --- diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index 8828789..ec5ca40 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -639,7 +639,7 @@ static inline int obd_cleanup(struct obd_device *obd) } } if (!obd->obd_type->typ_dt_ops->o_cleanup) - RETURN(-EOPNOTSUPP); + RETURN(0); OBD_COUNTER_INCREMENT(obd, cleanup);