]> git.proxmox.com Git - mirror_zfs.git/commit
zfs recv hangs if max recordsize is less than received recordsize
authorAmeer Hamza <106930537+ixhamza@users.noreply.github.com>
Fri, 16 Sep 2022 20:52:25 +0000 (01:52 +0500)
committerGitHub <noreply@github.com>
Fri, 16 Sep 2022 20:52:25 +0000 (13:52 -0700)
commit577d41d3b2e4b37f51270c399c85b2708e21238a
treed946e9b410d7009b542d4b754400fdc097e9a24d
parent8da218a7a2ee0d0c0a0741f1007ebce0bf22584a
zfs recv hangs if max recordsize is less than received recordsize

- Some optimizations for bqueue enqueue/dequeue.
- Added a fix to prevent deadlock when both bqueue_enqueue_impl()
and bqueue_dequeue() waits for signal to be triggered.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #13855
include/sys/bqueue.h
include/sys/fs/zfs.h
module/zfs/bqueue.c