libceph: support for sending notifies
Implement ceph_osdc_notify() for sending notifies.
Due to the fact that the current messenger can't do read-in into
pagelists (it can only do write-out from them), I had to go with a page
vector for a NOTIFY_COMPLETE payload, for now.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c
index e64cb85..39f91c7 100644
--- a/net/ceph/debugfs.c
+++ b/net/ceph/debugfs.c
@@ -206,8 +206,9 @@
seq_printf(s, "%llu\t", lreq->linger_id);
dump_target(s, &lreq->t);
- seq_printf(s, "\t%u\t%s/%d\n", lreq->register_gen,
- lreq->committed ? "C" : "", lreq->last_error);
+ seq_printf(s, "\t%u\t%s%s/%d\n", lreq->register_gen,
+ lreq->is_watch ? "W" : "N", lreq->committed ? "C" : "",
+ lreq->last_error);
}
static void dump_linger_requests(struct seq_file *s, struct ceph_osd *osd)