]> git.proxmox.com Git - mirror_zfs.git/commit
Improve dbuf_read() error reporting
authorAlexander Motin <mav@FreeBSD.org>
Wed, 3 Apr 2024 22:04:26 +0000 (18:04 -0400)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2024 22:04:26 +0000 (15:04 -0700)
commitb12738182cff269456e7737241415356c08b5d2e
treeb2ee1f3322d010ecd0d782d18c13c7af93e8f6c1
parent39be46f43f96fb7420386d03751b01f5cb376d6b
Improve dbuf_read() error reporting

Previous code reported non-ZIO errors only via return value, but
not via parent ZIO.  It could cause NULL-dereference panics due
to dmu_buf_hold_array_by_dnode() ignoring the return value,
relying solely on parent ZIO status.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reported by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16042
module/zfs/dbuf.c