Whamcloud - gitweb
LU-1092 ptlrpc: take export refcount during connect
authorLai Siyao <laisiyao@whamcloud.com>
Mon, 19 Mar 2012 08:41:54 +0000 (16:41 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Mar 2012 03:16:24 +0000 (23:16 -0400)
commit893cf2014a38c5bd94890d3522fafe55f024a958
tree1c1ec593fdb475dd19c0f1a867482db41bf6bb66
parent42324a4b74952979bbbcf454f882b776661f8e3a
LU-1092 ptlrpc: take export refcount during connect

In the process of (re)connect,  a refcount of export should be taken,
otherwise disconnect of this export may be called, and it will put
the last refcount of this export and make access to this export
invalid.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: Iaf27e842ed516b8968c90bfce396609e39f52c85
Reviewed-on: http://review.whamcloud.com/2345
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c