diff options
author | Sage Weil <sage@newdream.net> | 2010-01-08 18:58:25 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-14 15:23:39 -0500 |
commit | 7740a42f816790583bd8a9079337772d511af3a3 (patch) | |
tree | fffc12ba1ab1e60da8c13dba7fef5d0024278ca5 /fs/ceph | |
parent | 103e2d3ae57d38d18aaac1b327266c1407499ac1 (diff) |
ceph: display pgid in debugfs osd request dump
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/debugfs.c | 6 | ||||
-rw-r--r-- | fs/ceph/osd_client.c | 2 | ||||
-rw-r--r-- | fs/ceph/osd_client.h | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 22d3b47fb1be..fba44b2a6086 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c | |||
@@ -231,8 +231,10 @@ static int osdc_show(struct seq_file *s, void *pp) | |||
231 | 231 | ||
232 | req = rb_entry(p, struct ceph_osd_request, r_node); | 232 | req = rb_entry(p, struct ceph_osd_request, r_node); |
233 | 233 | ||
234 | seq_printf(s, "%lld\tosd%d\t", req->r_tid, | 234 | seq_printf(s, "%lld\tosd%d\t%d.%x\t", req->r_tid, |
235 | req->r_osd ? req->r_osd->o_osd : -1); | 235 | req->r_osd ? req->r_osd->o_osd : -1, |
236 | le32_to_cpu(req->r_pgid.pool), | ||
237 | le16_to_cpu(req->r_pgid.ps)); | ||
236 | 238 | ||
237 | head = req->r_request->front.iov_base; | 239 | head = req->r_request->front.iov_base; |
238 | op = (void *)(head + 1); | 240 | op = (void *)(head + 1); |
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c index 80b868f7a0fc..8417e21a3cb2 100644 --- a/fs/ceph/osd_client.c +++ b/fs/ceph/osd_client.c | |||
@@ -538,6 +538,8 @@ static int __map_osds(struct ceph_osd_client *osdc, | |||
538 | if (err) | 538 | if (err) |
539 | return err; | 539 | return err; |
540 | pgid = reqhead->layout.ol_pgid; | 540 | pgid = reqhead->layout.ol_pgid; |
541 | req->r_pgid = pgid; | ||
542 | |||
541 | o = ceph_calc_pg_primary(osdc->osdmap, pgid); | 543 | o = ceph_calc_pg_primary(osdc->osdmap, pgid); |
542 | 544 | ||
543 | if ((req->r_osd && req->r_osd->o_osd == o && | 545 | if ((req->r_osd && req->r_osd->o_osd == o && |
diff --git a/fs/ceph/osd_client.h b/fs/ceph/osd_client.h index 8fef71cc4457..4162c6810a8f 100644 --- a/fs/ceph/osd_client.h +++ b/fs/ceph/osd_client.h | |||
@@ -42,6 +42,7 @@ struct ceph_osd_request { | |||
42 | struct rb_node r_node; | 42 | struct rb_node r_node; |
43 | struct list_head r_osd_item; | 43 | struct list_head r_osd_item; |
44 | struct ceph_osd *r_osd; | 44 | struct ceph_osd *r_osd; |
45 | struct ceph_pg r_pgid; | ||
45 | 46 | ||
46 | struct ceph_connection *r_con_filling_pages; | 47 | struct ceph_connection *r_con_filling_pages; |
47 | 48 | ||