aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Leventhal <[email protected]>2014-09-17 08:53:02 +0200
committerBrian Behlendorf <[email protected]>2014-09-22 14:20:25 -0700
commit64dbba36794422aaed5177203edd0dd7aee77de7 (patch)
tree841e7d95ad687136caace63ee9094cd3660657b3
parentcfd3549a532d3f3551ac2bfd7badbfe2617b0e1f (diff)
Illumos 5174 - add sdt probe for blocked read in dbuf_read()
5174 add sdt probe for blocked read in dbuf_read() Reviewed by: Basil Crow <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Reviewed by: Steven Hartland <[email protected]> Reviewed by: Richard Elling <[email protected]> Reviewed by: Boris Protopopov <[email protected]> Reviewed by: Steven Hartland <[email protected]> Reviewed by: Garrett D'Amore <[email protected]> Approved by: Robert Mustacchi <[email protected]> References: https://www.illumos.org/issues/5174 https://github.com/illumos/illumos-gate/commit/f6164ad Ported by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2710
-rw-r--r--module/zfs/dbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c
index 7f75e131f..76a8a99ab 100644
--- a/module/zfs/dbuf.c
+++ b/module/zfs/dbuf.c
@@ -726,6 +726,8 @@ dbuf_read(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags)
db->db_state == DB_FILL) {
ASSERT(db->db_state == DB_READ ||
(flags & DB_RF_HAVESTRUCT) == 0);
+ DTRACE_PROBE2(blocked__read, dmu_buf_impl_t *,
+ db, zio_t *, zio);
cv_wait(&db->db_changed, &db->db_mtx);
}
if (db->db_state == DB_UNCACHED)