]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
Fix issues with raw receive_write_byref()
authorTom Caputi <tcaputi@datto.com>
Mon, 20 Aug 2018 18:03:56 +0000 (14:03 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 20 Aug 2018 18:03:56 +0000 (11:03 -0700)
commit149ce888bb14a220036ca3e5b301e3b56451bd71
tree693a3b880bd10701fc13153bf866d4c37dded8a9
parentc962fd6c4e3836be223af93b0d75d92e8ee98fb4
Fix issues with raw receive_write_byref()

This patch fixes 2 issues with raw, deduplicated send streams. The
first is that datasets who had been completely received earlier in
the stream were not still marked as raw receives. This caused
problems when newly received datasets attempted to fetch raw data
from these datasets without this flag set.

The second problem was that the arc freeze checksum code was not
consistent about which locks needed to be held while performing
its asserts. The proper locking needed to run these asserts is
actually fairly nuanced, since the asserts touch the linked list
of buffers (requiring the header lock), the arc_state (requiring
the b_evict_lock), and the b_freeze_cksum (requiring the
b_freeze_lock). This seems like a large performance sacrifice and
a lot of unneeded complexity to verify that this relatively small
debug feature is working as intended, so this patch simply removes
these asserts instead.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7701
module/zfs/arc.c
module/zfs/dbuf.c
module/zfs/dmu.c
module/zfs/dmu_send.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/rsend/Makefile.am
tests/zfs-tests/tests/functional/rsend/send-wDR_encrypted_zvol.ksh [new file with mode: 0755]