mirror_zfs/cmd/zdb
Ameer Hamza ab3db6d15d
arc: avoid possible deadlock in arc_read
In l2arc_evict(), the config lock may be acquired in reverse order
(e.g., first the config lock (writer), then a hash lock) unlike in
arc_read() during scenarios like L2ARC device removal. To avoid
deadlocks, if the attempt to acquire the config lock (reader) fails
in arc_read(), release the hash lock, wait for the config lock, and
retry from the beginning.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #17071
2025-02-25 14:32:12 -05:00
..
Makefile.am build: rename FORCEDEBUG_CPPFLAGS to LIBZPOOL_CPPFLAGS 2024-08-27 12:53:27 -07:00
zdb_il.c zdb_il: use flex array member to access ZIL records 2024-12-04 19:03:20 -05:00
zdb.c arc: avoid possible deadlock in arc_read 2025-02-25 14:32:12 -05:00
zdb.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00