Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always wait for txg sync when umounting dataset
Currently, when unmounting a filesystem, ZFS will only wait for a txg sync if the dataset is dirty and not readonly. However, this can be problematic in cases where a dataset is remounted readonly immediately before being unmounted, which often happens when the system is being shut down. Since encrypted datasets require that all I/O is completed before the dataset is disowned, this issue causes problems when write I/Os leak into the txgs after the dataset is disowned, which can happen when sync=disabled. This patch simply enforces that all dirty datasets should wait for a txg sync before umount completes. Fixes: openzfs#7753 Signed-off-by: Tom Caputi <[email protected]>
- Loading branch information