mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
DDT: Add locking for table ZAP destruction
Similar to BRT, DDT ZAP can be destroyed by sync context when it becomes empty. Respectively similar to BRT introduce RW-lock to protect open context methods from the destruction. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #18115
This commit is contained in:
@@ -284,6 +284,9 @@ typedef struct {
|
||||
avl_tree_t ddt_tree; /* "live" (changed) entries this txg */
|
||||
avl_tree_t ddt_repair_tree; /* entries being repaired */
|
||||
|
||||
/* Protects ddt_object[] and ddt_object_dnode[]. */
|
||||
krwlock_t ddt_objects_lock ____cacheline_aligned;
|
||||
|
||||
/*
|
||||
* Log trees are stable during I/O, and only modified during sync
|
||||
* with exclusive access.
|
||||
|
||||
Reference in New Issue
Block a user