Whamcloud - gitweb
LU-327 cleanup the client import of mgc
authorhongchao.zhang <hongchao.zhang@whamcloud.com>
Thu, 28 Jul 2011 07:46:47 +0000 (15:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Aug 2011 20:24:45 +0000 (16:24 -0400)
commit421d8e98f309870475aadc05aa81a60e9acd8e65
tree4eafec17df9ba211a2dde973bf666fad0fc5d435
parent167f2a4ec9c577fcafa07ac5356708c3cc09bdea
LU-327 cleanup the client import of mgc

the client import will not have been cleaned if it is setup but never
connected, adding such cleanup code in mgc_precleanup.

define a new inline function "obd_cleanup_client_import" in "obd_class.h"
to be used by mgc, mdc and osc.

Change-Id: If033de3fe81b9a565a7af40a7b93e395fb0bd659
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/917
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_class.h
lustre/mdc/mdc_request.c
lustre/mgc/libmgc.c
lustre/mgc/mgc_request.c
lustre/osc/osc_request.c