Whamcloud - gitweb
LU-10296 obdclass: no errors on missing o_cleanup 14/30314/2
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Wed, 29 Nov 2017 16:02:46 +0000 (19:02 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Dec 2017 03:46:09 +0000 (03:46 +0000)
it's legal to have o_cleanup undefined.

Change-Id: Ifd80dbd36fabcbfbd9a1609746d79a37e5a01023
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/30314
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/obd_class.h

index 8828789..ec5ca40 100644 (file)
@@ -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);