]> git.proxmox.com Git - mirror_zfs.git/commit
Add missing dmu_buf_unlock_parent() calls to dbuf_read_impl()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Feb 2020 22:54:12 +0000 (14:54 -0800)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 22:54:12 +0000 (14:54 -0800)
commitdceeca5bbd00188e7dcb1cf66080dcf2a0b47601
tree4548204c167c2b38fd888229ffc4c8407b18a6e0
parentbc67cba7c0f8b860746b3c80251fc8a968600d61
Add missing dmu_buf_unlock_parent() calls to dbuf_read_impl()

As explained by the comment in dbuf_read() and above dbuf_read_impl().
Under all circumstances the parent lock specified by dblt should be
dropped when existing dbuf_read_impl().  This was not being done for
two exist paths.  Additionally, ensure the mutex is unlocked before
dropping the parent lock.

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9968
module/zfs/dbuf.c