previous fix http://review.whamcloud.com/15576 added a call
to cfs_hash_getref(). add LASSERT() to ensure the can
never happen here return value of NULL is in fact never seen.
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: Ic6132b5450534db0bb9b89c3dd6f55517450c42a
Reviewed-on: http://review.whamcloud.com/16473
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
struct tg_export_data *ted = &exp->exp_target_data;
struct cfs_hash *hash;
+ /* Because obd_gen_hash will not be released until
+ * class_cleanup(), so hash should never be NULL here */
hash = cfs_hash_getref(exp->exp_obd->obd_gen_hash);
+ LASSERT(hash != NULL);
cfs_hash_del(hash, &ted->ted_lcd->lcd_generation,
&exp->exp_gen_hash);
cfs_hash_putref(hash);