diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2014-05-14 14:13:36 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-07-10 12:35:20 -0400 |
commit | 3d299f48a9ff82d29093578e937e83e41dc93325 (patch) | |
tree | 504a99e4843390b2443dd4507e8db5b916bbf6a6 | |
parent | b44e1184fc3158821a74c870f777a39e4aac2ce5 (diff) |
drbd: debugfs: add per connection oldest requests
Information of former /sys/block/drbdX/drbd/oldest_requests
is already with higher detail in these files:
debugfs/drbd/resource/$name/in_flight_summary,
debugfs/drbd/resource/$name/volumes/$vnr/oldest_requests
This patch adds
debugfs/drbd/resource/$name/connections/peer/oldest_requests
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_debugfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_debugfs.c b/drivers/block/drbd/drbd_debugfs.c index a4d0666a5931..db70d6caf220 100644 --- a/drivers/block/drbd/drbd_debugfs.c +++ b/drivers/block/drbd/drbd_debugfs.c | |||
@@ -670,6 +670,13 @@ void drbd_debugfs_connection_add(struct drbd_connection *connection) | |||
670 | if (IS_ERR_OR_NULL(dentry)) | 670 | if (IS_ERR_OR_NULL(dentry)) |
671 | goto fail; | 671 | goto fail; |
672 | connection->debugfs_conn_callback_history = dentry; | 672 | connection->debugfs_conn_callback_history = dentry; |
673 | |||
674 | dentry = debugfs_create_file("oldest_requests", S_IRUSR|S_IRGRP, | ||
675 | connection->debugfs_conn, connection, | ||
676 | &connection_oldest_requests_fops); | ||
677 | if (IS_ERR_OR_NULL(dentry)) | ||
678 | goto fail; | ||
679 | connection->debugfs_conn_oldest_requests = dentry; | ||
673 | return; | 680 | return; |
674 | 681 | ||
675 | fail: | 682 | fail: |