Whamcloud - gitweb
LU-362 Fix error path in lu_kmem_init().
authorMikhail Pershin <tappro@whamcloud.com>
Wed, 19 Oct 2011 19:55:04 +0000 (23:55 +0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 3 Nov 2011 04:27:30 +0000 (00:27 -0400)
commit7e2ecb0b3a79b27a002ec42106e43c43a6e5dbaf
tree50fc4a60f999bc8311b99d06009c28e14cfe7067
parented372d14c79c1873bfa57b9cd01eec2307dc3765
LU-362 Fix error path in lu_kmem_init().

When echo client is failed to set up there are memory leaks were
noticed, it is related to missed error handling in some functions.

- Free all caches if lu_kmem_init() failed
- fix error handling in cl_global_init() and ccc_global_init()

Change-Id: Ide9e7ad6d40f99a7fbb4330ba63b168cc408356f
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/586
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lclient/lcommon_cl.c
lustre/obdclass/cl_object.c
lustre/obdclass/lu_object.c
lustre/obdecho/echo_client.c