]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
7580 ztest failure in dbuf_read_impl
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 18:09:32 +0000 (18:09 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 18:09:32 +0000 (18:09 +0000)
commit2bfa921051c5c084c4d9670fb78915b955adc591
tree89092db113ac6bc50bcd37503a9c611213a287af
parentcdeb4e5f0896ac66ab0f2e5c8d5f674aa79a5f94
7580 ztest failure in dbuf_read_impl

illumos/illumos-gate@1a01181fdc809f40c64d5c6881ae3e4521a9d9c7
https://github.com/illumos/illumos-gate/commit/1a01181fdc809f40c64d5c6881ae3e4521a9d9c7

https://www.illumos.org/issues/7580
  We need to prevent any reader whenever we're about the zero out all the
  blkptrs. To do this we need to grab the dn_struct_rwlock as writer in
  dbuf_write_children_ready and free_children just prior to calling bzero.

Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: George Wilson <george.wilson@delphix.com>
uts/common/fs/zfs/dbuf.c
uts/common/fs/zfs/dnode_sync.c