diff options
author | Tom Caputi <[email protected]> | 2018-10-03 12:47:11 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-10-03 09:47:11 -0700 |
commit | 52ce99dd617369ff09d8eef8cfd36fa80dbfca4f (patch) | |
tree | a7d4a038ff37c7d4eace6b09aa400174bda991be /lib/libzfs/libzfs_dataset.c | |
parent | f65fbee1e7a370db24e1aaa2b7bea7865938b9ae (diff) |
Refcounted DSL Crypto Key Mappings
Since native ZFS encryption was merged, we have been fighting
against a series of bugs that come down to the same problem: Key
mappings (which must be present during all I/O operations) are
created and destroyed based on dataset ownership, but I/Os can
have traditionally been allowed to "leak" into the next txg after
the dataset is disowned.
In the past we have attempted to solve this problem by trying to
ensure that datasets are disowned ater all I/O is finished by
calling txg_wait_synced(), but we have repeatedly found edge cases
that need to be squashed and code paths that might incur a high
number of txg syncs. This patch attempts to resolve this issue
differently, by adding a reference to the key mapping for each txg
it is dirtied in. By doing so, we can remove many of the
unnecessary calls to txg_wait_synced() we have added in the past
and ensure we don't need to deal with this problem in the future.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Closes #7949
Diffstat (limited to 'lib/libzfs/libzfs_dataset.c')
0 files changed, 0 insertions, 0 deletions