From 063a83ab1fe518e52dbc7fb5f6e9d092b20f44e9 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Wed, 29 Nov 2017 19:02:46 +0300 Subject: [PATCH] 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 --- lustre/include/obd_class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1