virtio: add debugging if driver doesn't kick.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:43 +0000 (15:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:43 +0000 (15:14 +1030)
commite93300b1afc7cd4fe1e741ceaf06714d060e88b8
tree060bb46e8d7b570fa08df94aef1cf4cc3620f8c5
parentee7cd8981e15bcb365fc762afe3fc47b8242f630
virtio: add debugging if driver doesn't kick.

Under the existing #ifdef DEBUG, check that they don't have more than
1/10 of a second between an add_buf() and a
virtqueue_notify()/virtqueue_kick_prepare() call.

We could get false positives on a really busy system, but good for
development.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c