Whamcloud - gitweb
LU-7184 lod: cleanup unused OSP devices on error 35/16635/3
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 24 Sep 2015 20:46:31 +0000 (15:46 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Oct 2015 04:49:02 +0000 (04:49 +0000)
commitd2d725d2e2d31899f0453c967f5707a72e796fa0
tree55971465d47e250c7ef7e994b676b4baed412e87
parentd8612e307f28cc81df5d93e45130b9f04837ee27
LU-7184 lod: cleanup unused OSP devices on error

In lod_add_device() if the OSP device to be added cannot be added then
call LCFG_CLEANUP in the cleanup path.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I01e0a5b0f541481a002cf60fcece05908ba3194f
Reviewed-on: http://review.whamcloud.com/16635
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_internal.h
lustre/lod/lod_lov.c