Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
56e925b6
Commit
56e925b6
authored
Jan 03, 2012
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libceph: remove useless return value for osd_client __send_request()
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
2ff179e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
net/ceph/osd_client.c
net/ceph/osd_client.c
+6
-15
No files found.
net/ceph/osd_client.c
View file @
56e925b6
...
...
@@ -29,8 +29,8 @@ static void __register_request(struct ceph_osd_client *osdc,
struct
ceph_osd_request
*
req
);
static
void
__unregister_linger_request
(
struct
ceph_osd_client
*
osdc
,
struct
ceph_osd_request
*
req
);
static
int
__send_request
(
struct
ceph_osd_client
*
osdc
,
struct
ceph_osd_request
*
req
);
static
void
__send_request
(
struct
ceph_osd_client
*
osdc
,
struct
ceph_osd_request
*
req
);
static
int
op_needs_trail
(
int
op
)
{
...
...
@@ -1022,8 +1022,8 @@ static int __map_request(struct ceph_osd_client *osdc,
/*
* caller should hold map_sem (for read) and request_mutex
*/
static
int
__send_request
(
struct
ceph_osd_client
*
osdc
,
struct
ceph_osd_request
*
req
)
static
void
__send_request
(
struct
ceph_osd_client
*
osdc
,
struct
ceph_osd_request
*
req
)
{
struct
ceph_osd_request_head
*
reqhead
;
...
...
@@ -1041,7 +1041,6 @@ static int __send_request(struct ceph_osd_client *osdc,
ceph_msg_get
(
req
->
r_request
);
/* send consumes a ref */
ceph_con_send
(
&
req
->
r_osd
->
o_con
,
req
->
r_request
);
req
->
r_sent
=
req
->
r_osd
->
o_incarnation
;
return
0
;
}
/*
...
...
@@ -1726,17 +1725,9 @@ int ceph_osdc_start_request(struct ceph_osd_client *osdc,
dout
(
"send_request %p no up osds in pg
\n
"
,
req
);
ceph_monc_request_next_osdmap
(
&
osdc
->
client
->
monc
);
}
else
{
rc
=
__send_request
(
osdc
,
req
);
if
(
rc
)
{
if
(
nofail
)
{
dout
(
"osdc_start_request failed send, "
" will retry %lld
\n
"
,
req
->
r_tid
);
rc
=
0
;
}
else
{
__unregister_request
(
osdc
,
req
);
}
}
__send_request
(
osdc
,
req
);
}
rc
=
0
;
}
out_unlock:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment