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
Kirill Smelkov
linux
Commits
c5c9a0bf
Commit
c5c9a0bf
authored
Jul 01, 2014
by
Yan, Zheng
Committed by
Ilya Dryomov
Jul 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: include time stamp in replayed MDS requests
Signed-off-by:
Yan, Zheng
<
zheng.z.yan@intel.com
>
parent
fbba11b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+8
-2
No files found.
fs/ceph/mds_client.c
View file @
c5c9a0bf
...
...
@@ -1904,6 +1904,7 @@ static int __prepare_send_request(struct ceph_mds_client *mdsc,
req
->
r_tid
,
ceph_mds_op_name
(
req
->
r_op
),
req
->
r_attempts
);
if
(
req
->
r_got_unsafe
)
{
void
*
p
;
/*
* Replay. Do not regenerate message (and rebuild
* paths, etc.); just use the original message.
...
...
@@ -1924,8 +1925,13 @@ static int __prepare_send_request(struct ceph_mds_client *mdsc,
/* remove cap/dentry releases from message */
rhead
->
num_releases
=
0
;
msg
->
hdr
.
front_len
=
cpu_to_le32
(
req
->
r_request_release_offset
);
msg
->
front
.
iov_len
=
req
->
r_request_release_offset
;
/* time stamp */
p
=
msg
->
front
.
iov_base
+
req
->
r_request_release_offset
;
ceph_encode_copy
(
&
p
,
&
req
->
r_stamp
,
sizeof
(
req
->
r_stamp
));
msg
->
front
.
iov_len
=
p
-
msg
->
front
.
iov_base
;
msg
->
hdr
.
front_len
=
cpu_to_le32
(
msg
->
front
.
iov_len
);
return
0
;
}
...
...
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