Skip to content

Commit

Permalink
Illumos 5174 - add sdt probe for blocked read in dbuf_read()
Browse files Browse the repository at this point in the history
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
  illumos/illumos-gate@f6164ad

Ported by: Turbo Fredriksson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2710
  • Loading branch information
delphixdelphix authored and behlendorf committed Sep 22, 2014
1 parent cfd3549 commit 64dbba3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/dbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64dbba3

Please sign in to comment.