[DRBD-cvs] svn commit by phil - r2535 - trunk/drbd - A tracepoint
to watch the unplug events.
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Mon Oct 16 17:58:01 CEST 2006
Author: phil
Date: 2006-10-16 17:58:00 +0200 (Mon, 16 Oct 2006)
New Revision: 2535
Modified:
trunk/drbd/drbd_int.h
trunk/drbd/drbd_main.c
Log:
A tracepoint to watch the unplug events.
Modified: trunk/drbd/drbd_int.h
===================================================================
--- trunk/drbd/drbd_int.h 2006-10-16 11:43:08 UTC (rev 2534)
+++ trunk/drbd/drbd_int.h 2006-10-16 15:58:00 UTC (rev 2535)
@@ -1178,6 +1178,7 @@
TraceTypeUuid = 0x00000004,
TraceTypeResync = 0x00000008,
TraceTypeEE = 0x00000010,
+ TraceTypeUnplug = 0x00000020,
};
static inline int
Modified: trunk/drbd/drbd_main.c
===================================================================
--- trunk/drbd/drbd_main.c 2006-10-16 11:43:08 UTC (rev 2534)
+++ trunk/drbd/drbd_main.c 2006-10-16 15:58:00 UTC (rev 2535)
@@ -1907,6 +1907,11 @@
{
drbd_dev *mdev = q->queuedata;
+ MTRACE(TraceTypeUnplug,TraceLvlSummary,
+ INFO("got unplugged ap_bio_count=%d\n",
+ atomic_read(&mdev->ap_bio_cnt));
+ );
+
/* unplug FIRST */
spin_lock_irq(q->queue_lock);
blk_remove_plug(q);
More information about the drbd-cvs
mailing list