Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f6a1cc89
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f6a1cc89
编写于
2月 22, 2008
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SUNRPC: Add a (empty for the moment) destructor for rpc_wait_queues
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
5d00837b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
8 deletion
+28
-8
fs/nfs/client.c
fs/nfs/client.c
+2
-0
fs/nfs/nfs4state.c
fs/nfs/nfs4state.c
+5
-1
include/linux/sunrpc/sched.h
include/linux/sunrpc/sched.h
+1
-0
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/auth_gss.c
+1
-0
net/sunrpc/sched.c
net/sunrpc/sched.c
+14
-7
net/sunrpc/xprt.c
net/sunrpc/xprt.c
+5
-0
未找到文件。
fs/nfs/client.c
浏览文件 @
f6a1cc89
...
...
@@ -170,6 +170,8 @@ static void nfs4_shutdown_client(struct nfs_client *clp)
BUG_ON
(
!
RB_EMPTY_ROOT
(
&
clp
->
cl_state_owners
));
if
(
__test_and_clear_bit
(
NFS_CS_IDMAP
,
&
clp
->
cl_res_state
))
nfs_idmap_delete
(
clp
);
rpc_destroy_wait_queue
(
&
clp
->
cl_rpcwaitq
);
#endif
}
...
...
fs/nfs/nfs4state.c
浏览文件 @
f6a1cc89
...
...
@@ -292,8 +292,10 @@ struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, struct
spin_unlock
(
&
clp
->
cl_lock
);
if
(
sp
==
new
)
get_rpccred
(
cred
);
else
else
{
rpc_destroy_wait_queue
(
&
new
->
so_sequence
.
wait
);
kfree
(
new
);
}
return
sp
;
}
...
...
@@ -310,6 +312,7 @@ void nfs4_put_state_owner(struct nfs4_state_owner *sp)
return
;
nfs4_remove_state_owner
(
clp
,
sp
);
spin_unlock
(
&
clp
->
cl_lock
);
rpc_destroy_wait_queue
(
&
sp
->
so_sequence
.
wait
);
put_rpccred
(
cred
);
kfree
(
sp
);
}
...
...
@@ -529,6 +532,7 @@ static void nfs4_free_lock_state(struct nfs4_lock_state *lsp)
spin_lock
(
&
clp
->
cl_lock
);
nfs_free_unique_id
(
&
clp
->
cl_lockowner_id
,
&
lsp
->
ls_id
);
spin_unlock
(
&
clp
->
cl_lock
);
rpc_destroy_wait_queue
(
&
lsp
->
ls_sequence
.
wait
);
kfree
(
lsp
);
}
...
...
include/linux/sunrpc/sched.h
浏览文件 @
f6a1cc89
...
...
@@ -228,6 +228,7 @@ void rpc_killall_tasks(struct rpc_clnt *);
void
rpc_execute
(
struct
rpc_task
*
);
void
rpc_init_priority_wait_queue
(
struct
rpc_wait_queue
*
,
const
char
*
);
void
rpc_init_wait_queue
(
struct
rpc_wait_queue
*
,
const
char
*
);
void
rpc_destroy_wait_queue
(
struct
rpc_wait_queue
*
);
void
rpc_sleep_on
(
struct
rpc_wait_queue
*
,
struct
rpc_task
*
,
rpc_action
action
);
void
rpc_wake_up_queued_task
(
struct
rpc_wait_queue
*
,
...
...
net/sunrpc/auth_gss/auth_gss.c
浏览文件 @
f6a1cc89
...
...
@@ -266,6 +266,7 @@ gss_release_msg(struct gss_upcall_msg *gss_msg)
BUG_ON
(
!
list_empty
(
&
gss_msg
->
list
));
if
(
gss_msg
->
ctx
!=
NULL
)
gss_put_ctx
(
gss_msg
->
ctx
);
rpc_destroy_wait_queue
(
&
gss_msg
->
rpc_waitqueue
);
kfree
(
gss_msg
);
}
...
...
net/sunrpc/sched.c
浏览文件 @
f6a1cc89
...
...
@@ -214,6 +214,11 @@ void rpc_init_wait_queue(struct rpc_wait_queue *queue, const char *qname)
}
EXPORT_SYMBOL_GPL
(
rpc_init_wait_queue
);
void
rpc_destroy_wait_queue
(
struct
rpc_wait_queue
*
queue
)
{
}
EXPORT_SYMBOL_GPL
(
rpc_destroy_wait_queue
);
static
int
rpc_wait_bit_killable
(
void
*
word
)
{
if
(
fatal_signal_pending
(
current
))
...
...
@@ -1020,11 +1025,20 @@ rpc_destroy_mempool(void)
kmem_cache_destroy
(
rpc_task_slabp
);
if
(
rpc_buffer_slabp
)
kmem_cache_destroy
(
rpc_buffer_slabp
);
rpc_destroy_wait_queue
(
&
delay_queue
);
}
int
rpc_init_mempool
(
void
)
{
/*
* The following is not strictly a mempool initialisation,
* but there is no harm in doing it here
*/
rpc_init_wait_queue
(
&
delay_queue
,
"delayq"
);
if
(
!
rpciod_start
())
goto
err_nomem
;
rpc_task_slabp
=
kmem_cache_create
(
"rpc_tasks"
,
sizeof
(
struct
rpc_task
),
0
,
SLAB_HWCACHE_ALIGN
,
...
...
@@ -1045,13 +1059,6 @@ rpc_init_mempool(void)
rpc_buffer_slabp
);
if
(
!
rpc_buffer_mempool
)
goto
err_nomem
;
if
(
!
rpciod_start
())
goto
err_nomem
;
/*
* The following is not strictly a mempool initialisation,
* but there is no harm in doing it here
*/
rpc_init_wait_queue
(
&
delay_queue
,
"delayq"
);
return
0
;
err_nomem:
rpc_destroy_mempool
();
...
...
net/sunrpc/xprt.c
浏览文件 @
f6a1cc89
...
...
@@ -1052,6 +1052,11 @@ static void xprt_destroy(struct kref *kref)
xprt
->
shutdown
=
1
;
del_timer_sync
(
&
xprt
->
timer
);
rpc_destroy_wait_queue
(
&
xprt
->
binding
);
rpc_destroy_wait_queue
(
&
xprt
->
pending
);
rpc_destroy_wait_queue
(
&
xprt
->
sending
);
rpc_destroy_wait_queue
(
&
xprt
->
resend
);
rpc_destroy_wait_queue
(
&
xprt
->
backlog
);
/*
* Tear down transport state and free the rpc_xprt
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录