Skip to content

Commit 64dbba3

Browse files
delphixdelphixbehlendorf
authored andcommitted
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 <basil.crow@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Reviewed by: Richard Elling <richard.elling@gmail.com> Reviewed by: Boris Protopopov <bprotopopov@hotmail.com> Reviewed by: Steven Hartland <killing@multiplay.co.uk> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Robert Mustacchi <rm@joyent.com> References: https://www.illumos.org/issues/5174 illumos/illumos-gate@f6164ad Ported by: Turbo Fredriksson <turbo@bayour.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2710
1 parent cfd3549 commit 64dbba3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/zfs/dbuf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,8 @@ dbuf_read(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags)
726726
db->db_state == DB_FILL) {
727727
ASSERT(db->db_state == DB_READ ||
728728
(flags & DB_RF_HAVESTRUCT) == 0);
729+
DTRACE_PROBE2(blocked__read, dmu_buf_impl_t *,
730+
db, zio_t *, zio);
729731
cv_wait(&db->db_changed, &db->db_mtx);
730732
}
731733
if (db->db_state == DB_UNCACHED)

0 commit comments

Comments
 (0)