Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
adfa7144
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
adfa7144
编写于
9月 03, 2018
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SUNRPC: Cleanup: remove the unused 'task' argument from the request_send()
Signed-off-by:
N
Trond Myklebust
<
trond.myklebust@hammerspace.com
>
上级
c544577d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
12 deletion
+9
-12
include/linux/sunrpc/xprt.h
include/linux/sunrpc/xprt.h
+1
-1
net/sunrpc/xprt.c
net/sunrpc/xprt.c
+1
-1
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
+1
-1
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/transport.c
+2
-2
net/sunrpc/xprtsock.c
net/sunrpc/xprtsock.c
+4
-7
未找到文件。
include/linux/sunrpc/xprt.h
浏览文件 @
adfa7144
...
...
@@ -141,7 +141,7 @@ struct rpc_xprt_ops {
void
(
*
connect
)(
struct
rpc_xprt
*
xprt
,
struct
rpc_task
*
task
);
int
(
*
buf_alloc
)(
struct
rpc_task
*
task
);
void
(
*
buf_free
)(
struct
rpc_task
*
task
);
int
(
*
send_request
)(
struct
rpc_rqst
*
req
,
struct
rpc_task
*
task
);
int
(
*
send_request
)(
struct
rpc_rqst
*
req
);
void
(
*
set_retrans_timeout
)(
struct
rpc_task
*
task
);
void
(
*
timer
)(
struct
rpc_xprt
*
xprt
,
struct
rpc_task
*
task
);
void
(
*
release_request
)(
struct
rpc_task
*
task
);
...
...
net/sunrpc/xprt.c
浏览文件 @
adfa7144
...
...
@@ -1283,7 +1283,7 @@ xprt_request_transmit(struct rpc_rqst *req, struct rpc_task *snd_task)
req
->
rq_ntrans
++
;
connect_cookie
=
xprt
->
connect_cookie
;
status
=
xprt
->
ops
->
send_request
(
req
,
snd_task
);
status
=
xprt
->
ops
->
send_request
(
req
);
trace_xprt_transmit
(
xprt
,
req
->
rq_xid
,
status
);
if
(
status
!=
0
)
{
req
->
rq_ntrans
--
;
...
...
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
浏览文件 @
adfa7144
...
...
@@ -215,7 +215,7 @@ rpcrdma_bc_send_request(struct svcxprt_rdma *rdma, struct rpc_rqst *rqst)
* connection.
*/
static
int
xprt_rdma_bc_send_request
(
struct
rpc_rqst
*
rqst
,
struct
rpc_task
*
task
)
xprt_rdma_bc_send_request
(
struct
rpc_rqst
*
rqst
)
{
struct
svc_xprt
*
sxprt
=
rqst
->
rq_xprt
->
bc_xprt
;
struct
svcxprt_rdma
*
rdma
;
...
...
net/sunrpc/xprtrdma/transport.c
浏览文件 @
adfa7144
...
...
@@ -693,7 +693,7 @@ xprt_rdma_free(struct rpc_task *task)
/**
* xprt_rdma_send_request - marshal and send an RPC request
* @
task: RPC task with an
RPC message in rq_snd_buf
* @
rqst:
RPC message in rq_snd_buf
*
* Caller holds the transport's write lock.
*
...
...
@@ -706,7 +706,7 @@ xprt_rdma_free(struct rpc_task *task)
* sent. Do not try to send this message again.
*/
static
int
xprt_rdma_send_request
(
struct
rpc_rqst
*
rqst
,
struct
rpc_task
*
task
)
xprt_rdma_send_request
(
struct
rpc_rqst
*
rqst
)
{
struct
rpc_xprt
*
xprt
=
rqst
->
rq_xprt
;
struct
rpcrdma_req
*
req
=
rpcr_to_rdmar
(
rqst
);
...
...
net/sunrpc/xprtsock.c
浏览文件 @
adfa7144
...
...
@@ -507,7 +507,6 @@ static inline void xs_encode_stream_record_marker(struct xdr_buf *buf)
/**
* xs_local_send_request - write an RPC request to an AF_LOCAL socket
* @req: pointer to RPC request
* @task: RPC task that manages the state of an RPC request
*
* Return values:
* 0: The request has been sent
...
...
@@ -516,7 +515,7 @@ static inline void xs_encode_stream_record_marker(struct xdr_buf *buf)
* ENOTCONN: Caller needs to invoke connect logic then call again
* other: Some other error occured, the request was not sent
*/
static
int
xs_local_send_request
(
struct
rpc_rqst
*
req
,
struct
rpc_task
*
task
)
static
int
xs_local_send_request
(
struct
rpc_rqst
*
req
)
{
struct
rpc_xprt
*
xprt
=
req
->
rq_xprt
;
struct
sock_xprt
*
transport
=
...
...
@@ -579,7 +578,6 @@ static int xs_local_send_request(struct rpc_rqst *req, struct rpc_task *task)
/**
* xs_udp_send_request - write an RPC request to a UDP socket
* @req: pointer to RPC request
* @task: address of RPC task that manages the state of an RPC request
*
* Return values:
* 0: The request has been sent
...
...
@@ -588,7 +586,7 @@ static int xs_local_send_request(struct rpc_rqst *req, struct rpc_task *task)
* ENOTCONN: Caller needs to invoke connect logic then call again
* other: Some other error occurred, the request was not sent
*/
static
int
xs_udp_send_request
(
struct
rpc_rqst
*
req
,
struct
rpc_task
*
task
)
static
int
xs_udp_send_request
(
struct
rpc_rqst
*
req
)
{
struct
rpc_xprt
*
xprt
=
req
->
rq_xprt
;
struct
sock_xprt
*
transport
=
container_of
(
xprt
,
struct
sock_xprt
,
xprt
);
...
...
@@ -656,7 +654,6 @@ static int xs_udp_send_request(struct rpc_rqst *req, struct rpc_task *task)
/**
* xs_tcp_send_request - write an RPC request to a TCP socket
* @req: pointer to RPC request
* @task: address of RPC task that manages the state of an RPC request
*
* Return values:
* 0: The request has been sent
...
...
@@ -668,7 +665,7 @@ static int xs_udp_send_request(struct rpc_rqst *req, struct rpc_task *task)
* XXX: In the case of soft timeouts, should we eventually give up
* if sendmsg is not able to make progress?
*/
static
int
xs_tcp_send_request
(
struct
rpc_rqst
*
req
,
struct
rpc_task
*
task
)
static
int
xs_tcp_send_request
(
struct
rpc_rqst
*
req
)
{
struct
rpc_xprt
*
xprt
=
req
->
rq_xprt
;
struct
sock_xprt
*
transport
=
container_of
(
xprt
,
struct
sock_xprt
,
xprt
);
...
...
@@ -2704,7 +2701,7 @@ static int bc_sendto(struct rpc_rqst *req)
/*
* The send routine. Borrows from svc_send
*/
static
int
bc_send_request
(
struct
rpc_rqst
*
req
,
struct
rpc_task
*
task
)
static
int
bc_send_request
(
struct
rpc_rqst
*
req
)
{
struct
svc_xprt
*
xprt
;
int
len
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录