summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-10-02 22:58:25 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-02 22:58:25 -0700
commit7b88e5e0bdf25a3c7d7b6efd5caa54cbcdfec861 (patch)
treeca8d59090a3e5c168a67ce3c4c20b44367a1267f /include/linux/blkdev.h
parent7e96bae145f0f6bf287e5ba11679c114ed76f5d7 (diff)
[PATCH] "io wait" process accounting
Patch from Rik adds "I/O wait" statistics to /proc/stat. This allows us to determine how much system time is being spent awaiting IO completion. This is an important statistic, as it tends to directly subtract from job completion time. procps-2.0.9 is OK with this, but doesn't report it.
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index ee1171a3ae67..187213441ee7 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -401,4 +401,8 @@ static inline void put_dev_sector(Sector p)
page_cache_release(p.v);
}
+extern atomic_t nr_iowait_tasks;
+void io_schedule(void);
+void io_schedule_timeout(long timeout);
+
#endif