drbd: debugfs: add in_flight_summary data
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 2 May 2014 11:20:05 +0000 (13:20 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:16 +0000 (18:35 +0200)
commitdb1866ffeed2e142208a801f7598326b92ebf7c5
treec3abaf11a7f9d4547f021120948cedac88e67d79
parent4d3d5aa83aa45f1c7c9644b30e3a67e42c26695f
drbd: debugfs: add in_flight_summary data

To help diagnosing "high latency" or "hung" IO situations on DRBD,
present per drbd resource group a summary of operations currently in progress.

First item is a list of oldest drbd_request objects
waiting for various things:
 * still being prepared
 * waiting for activity log transaction
 * waiting for local disk
 * waiting to be sent
 * waiting for peer acknowledgement ("receive ack", "write ack")
 * waiting for peer epoch acknowledgement ("barrier ack")

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_debugfs.c