Files
mirror_zfs/module
George Amanakis 2a49ebbb4d Avoid panic in case of pool errors and missing L2ARC
In case an ARC buffer is allocated only on L2ARC, and there are
underlying errors in a pool with the cache device in faulty state, a
panic can occur in arc_read_done()->arc_hdr_destroy()->
arc_hdr_l2arc_destroy()->arc_hdr_clear_flags() when trying to free
the ARC buffer.

Fix this by discarding the buffer's identity in arc_hdr_destroy(), in
case the buffer is not empty, before calling arc_hdr_l2hdr_destroy().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #12392
2021-09-16 09:40:15 -07:00
..
2021-09-14 10:17:54 -06:00
2021-09-14 10:17:54 -06:00
2020-06-10 09:24:15 -07:00
2021-04-02 18:52:15 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00