]> granicus.if.org Git - zfs/commit
OpenZFS 7086 - ztest attempts dva_get_dsize_sync on an embedded blockpointer
authorMatthew Ahrens <mahrens@delphix.com>
Mon, 29 Aug 2016 18:40:16 +0000 (11:40 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Aug 2016 21:25:50 +0000 (14:25 -0700)
commit98ace739bd89b541af30d9d627ee42622fbbd861
tree61f79d07871452ab018ff73208311387ee0ffd5d
parentc40db193a5e503fffacf6d96a7dd48a0f1b36601
OpenZFS 7086 - ztest attempts dva_get_dsize_sync on an embedded blockpointer

In dbuf_dirty(), we need to grab the dn_struct_rwlock before looking at
the db_blkptr, to prevent it from being changed by syncing context.

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/7086
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/98fa317
Closes #5039
module/zfs/dbuf.c