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>
Fri, 20 Apr 2012 20:19:01 +0000 (16:19 -0400)
commit2c8b70becc8da305b687509febbdd6f8de95cf10
tree61c682d36e137a2b039ffb5ba41f6816d185ebbb
parentef51cfe1a5a85d3f66c73282dfb073acc2c64450
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