Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm snapshot: fix oversights in optional discard support
__find_snapshots_sharing_cow() should always be used with _origins_lock held so fix snapshot_io_hints() accordingly. Also, once a snapshot is being merged discards must not be allowed -- otherwise incorrect or duplicate work will be performed. Fixes: 2e60238 ("dm snapshot: add optional discard support features") Reported-by: Nikos Tsironis <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
- Loading branch information