Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak introduced by commit a6e50b4 (dm snapshot: skip reading origin when overwriting complete chunk). When allocating a set of jobs from kc->job_pool, job->master_job must be set (to point to itself) so that the mempool item gets freed when the master_job completes. master_job was introduced by commit c6ea41f (dm kcopyd: preallocate sub jobs to avoid deadlock) Reported-by: Michael Leun <[email protected]> Cc: Mikulas Patocka <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
- Loading branch information