Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
b6fb0df1
Commit
b6fb0df1
authored
14 years ago
by
Andy Grover
Browse files
Options
Downloads
Patches
Plain Diff
RDS/IB: Make ib_recv_refill return void
Signed-off-by:
Andy Grover
<
andy.grover@oracle.com
>
parent
fbf4d7e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
net/rds/ib.h
+1
-1
1 addition, 1 deletion
net/rds/ib.h
net/rds/ib_recv.c
+1
-5
1 addition, 5 deletions
net/rds/ib_recv.c
with
2 additions
and
6 deletions
net/rds/ib.h
+
1
−
1
View file @
b6fb0df1
...
...
@@ -323,7 +323,7 @@ void rds_ib_recv_exit(void);
int
rds_ib_recv
(
struct
rds_connection
*
conn
);
int
rds_ib_recv_alloc_caches
(
struct
rds_ib_connection
*
ic
);
void
rds_ib_recv_free_caches
(
struct
rds_ib_connection
*
ic
);
int
rds_ib_recv_refill
(
struct
rds_connection
*
conn
,
int
prefill
);
void
rds_ib_recv_refill
(
struct
rds_connection
*
conn
,
int
prefill
);
void
rds_ib_inc_free
(
struct
rds_incoming
*
inc
);
int
rds_ib_inc_copy_to_user
(
struct
rds_incoming
*
inc
,
struct
iovec
*
iov
,
size_t
size
);
...
...
This diff is collapsed.
Click to expand it.
net/rds/ib_recv.c
+
1
−
5
View file @
b6fb0df1
...
...
@@ -353,7 +353,7 @@ static int rds_ib_recv_refill_one(struct rds_connection *conn,
*
* -1 is returned if posting fails due to temporary resource exhaustion.
*/
int
rds_ib_recv_refill
(
struct
rds_connection
*
conn
,
int
prefill
)
void
rds_ib_recv_refill
(
struct
rds_connection
*
conn
,
int
prefill
)
{
struct
rds_ib_connection
*
ic
=
conn
->
c_transport_data
;
struct
rds_ib_recv_work
*
recv
;
...
...
@@ -367,14 +367,12 @@ int rds_ib_recv_refill(struct rds_connection *conn, int prefill)
if
(
pos
>=
ic
->
i_recv_ring
.
w_nr
)
{
printk
(
KERN_NOTICE
"Argh - ring alloc returned pos=%u
\n
"
,
pos
);
ret
=
-
EINVAL
;
break
;
}
recv
=
&
ic
->
i_recvs
[
pos
];
ret
=
rds_ib_recv_refill_one
(
conn
,
recv
,
prefill
);
if
(
ret
)
{
ret
=
-
1
;
break
;
}
...
...
@@ -388,7 +386,6 @@ int rds_ib_recv_refill(struct rds_connection *conn, int prefill)
"%pI4 returned %d, disconnecting and "
"reconnecting
\n
"
,
&
conn
->
c_faddr
,
ret
);
ret
=
-
1
;
break
;
}
...
...
@@ -401,7 +398,6 @@ int rds_ib_recv_refill(struct rds_connection *conn, int prefill)
if
(
ret
)
rds_ib_ring_unalloc
(
&
ic
->
i_recv_ring
,
1
);
return
ret
;
}
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment