summaryrefslogtreecommitdiffstats
path: root/module/zfs/zio.c
diff options
context:
space:
mode:
authorMatt Johnston <[email protected]>2012-12-21 10:40:20 +0800
committerBrian Behlendorf <[email protected]>2013-01-07 10:52:52 -0800
commit72938d6905d9dcd60f7a5ff68ae469e74c248228 (patch)
tree7c1dca51b3f152a4a9930ab8e905905fd2726c6f /module/zfs/zio.c
parent72f53c5694bfd57b56e79fc3b7c4390bce4072d2 (diff)
Use cv_wait_io() which will will account for iowait
Update zio_wait() to use cv_wait_io() to ensure the iowait time is properly accounted for. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r--module/zfs/zio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index ece3329d0..bfb817b78 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -1316,7 +1316,7 @@ zio_wait(zio_t *zio)
mutex_enter(&zio->io_lock);
while (zio->io_executor != NULL)
- cv_wait(&zio->io_cv, &zio->io_lock);
+ cv_wait_io(&zio->io_cv, &zio->io_lock);
mutex_exit(&zio->io_lock);
error = zio->io_error;