Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1a47e7a6
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
153
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1a47e7a6
编写于
6月 05, 2012
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NFSv4.1: Cleanup - move nfs4_has_session tests out of state manager loop
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
60f00153
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
3 deletion
+6
-3
fs/nfs/nfs4state.c
fs/nfs/nfs4state.c
+6
-3
未找到文件。
fs/nfs/nfs4state.c
浏览文件 @
1a47e7a6
...
...
@@ -1764,6 +1764,8 @@ static int nfs4_reset_session(struct nfs_client *clp)
struct
rpc_cred
*
cred
;
int
status
;
if
(
!
nfs4_has_session
(
clp
))
return
0
;
nfs4_begin_drain_session
(
clp
);
cred
=
nfs4_get_exchange_id_cred
(
clp
);
status
=
nfs4_proc_destroy_session
(
clp
->
cl_session
,
cred
);
...
...
@@ -1824,6 +1826,8 @@ static int nfs4_bind_conn_to_session(struct nfs_client *clp)
struct
rpc_cred
*
cred
;
int
ret
;
if
(
!
nfs4_has_session
(
clp
))
return
0
;
nfs4_begin_drain_session
(
clp
);
cred
=
nfs4_get_exchange_id_cred
(
clp
);
ret
=
nfs4_proc_bind_conn_to_session
(
clp
,
cred
);
...
...
@@ -1901,8 +1905,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
}
/* Initialize or reset the session */
if
(
test_and_clear_bit
(
NFS4CLNT_SESSION_RESET
,
&
clp
->
cl_state
)
&&
nfs4_has_session
(
clp
))
{
if
(
test_and_clear_bit
(
NFS4CLNT_SESSION_RESET
,
&
clp
->
cl_state
))
{
section
=
"reset session"
;
status
=
nfs4_reset_session
(
clp
);
if
(
test_bit
(
NFS4CLNT_LEASE_EXPIRED
,
&
clp
->
cl_state
))
...
...
@@ -1913,7 +1916,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
/* Send BIND_CONN_TO_SESSION */
if
(
test_and_clear_bit
(
NFS4CLNT_BIND_CONN_TO_SESSION
,
&
clp
->
cl_state
)
&&
nfs4_has_session
(
clp
)
)
{
&
clp
->
cl_state
))
{
section
=
"bind conn to session"
;
status
=
nfs4_bind_conn_to_session
(
clp
);
if
(
status
<
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录