Whamcloud - gitweb
LU-6499 obdclass: obdclass module cleanup upon load error 44/22544/13
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 16 Sep 2016 08:15:06 +0000 (10:15 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 15 Feb 2017 01:03:11 +0000 (01:03 +0000)
commite4761eb1f4d564f111be66a61ac84f9f9be97fc2
treeeb3908c92b3074ef547e9a9af5533a606e913338
parent3dc5a9fed1cc45dc0df4f5986dc96662f4dd6abe
LU-6499 obdclass: obdclass module cleanup upon load error

Fix obdclass_init() error paths to proceed with cleanup.
This will particularly allow to no longer crash upon next
load attempt and this due to previous miscdevice not been
deregistered and thus still referenced in misc_list when
unmapped.

conf-sanity/test_102 has been created to verify correct
behavior/cleanup.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I6f65cf651251cf92427e2bab3ff6b51ebb98d699
Reviewed-on: https://review.whamcloud.com/22544
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h
lustre/obdclass/class_obd.c
lustre/tests/conf-sanity.sh