Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
7740a42f
Commit
7740a42f
authored
Jan 08, 2010
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: display pgid in debugfs osd request dump
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
103e2d3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+4
-2
fs/ceph/osd_client.c
fs/ceph/osd_client.c
+2
-0
fs/ceph/osd_client.h
fs/ceph/osd_client.h
+1
-0
No files found.
fs/ceph/debugfs.c
View file @
7740a42f
...
...
@@ -231,8 +231,10 @@ static int osdc_show(struct seq_file *s, void *pp)
req
=
rb_entry
(
p
,
struct
ceph_osd_request
,
r_node
);
seq_printf
(
s
,
"%lld
\t
osd%d
\t
"
,
req
->
r_tid
,
req
->
r_osd
?
req
->
r_osd
->
o_osd
:
-
1
);
seq_printf
(
s
,
"%lld
\t
osd%d
\t
%d.%x
\t
"
,
req
->
r_tid
,
req
->
r_osd
?
req
->
r_osd
->
o_osd
:
-
1
,
le32_to_cpu
(
req
->
r_pgid
.
pool
),
le16_to_cpu
(
req
->
r_pgid
.
ps
));
head
=
req
->
r_request
->
front
.
iov_base
;
op
=
(
void
*
)(
head
+
1
);
...
...
fs/ceph/osd_client.c
View file @
7740a42f
...
...
@@ -538,6 +538,8 @@ static int __map_osds(struct ceph_osd_client *osdc,
if
(
err
)
return
err
;
pgid
=
reqhead
->
layout
.
ol_pgid
;
req
->
r_pgid
=
pgid
;
o
=
ceph_calc_pg_primary
(
osdc
->
osdmap
,
pgid
);
if
((
req
->
r_osd
&&
req
->
r_osd
->
o_osd
==
o
&&
...
...
fs/ceph/osd_client.h
View file @
7740a42f
...
...
@@ -42,6 +42,7 @@ struct ceph_osd_request {
struct
rb_node
r_node
;
struct
list_head
r_osd_item
;
struct
ceph_osd
*
r_osd
;
struct
ceph_pg
r_pgid
;
struct
ceph_connection
*
r_con_filling_pages
;
...
...
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