linux/drivers/md
Alasdair G Kergon d136f2efdf dm kcopyd: fix job_pool leak
Fix memory leak introduced by commit a6e50b409d
(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 c6ea41fbbe
(dm kcopyd: preallocate sub jobs to avoid deadlock)

Reported-by: Michael Leun <ml@newton.leun.net>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2011-10-23 20:55:17 +01:00
..
bitmap.c
bitmap.h
dm-bio-record.h
dm-crypt.c dm crypt: always disable discard_zeroes_data 2011-09-25 23:26:21 +01:00
dm-delay.c
dm-exception-store.c
dm-exception-store.h
dm-flakey.c dm: flakey fix corrupt_bio_byte error path 2011-09-25 23:26:15 +01:00
dm-io.c
dm-ioctl.c
dm-kcopyd.c dm kcopyd: fix job_pool leak 2011-10-23 20:55:17 +01:00
dm-linear.c
dm-log-userspace-base.c
dm-log-userspace-transfer.c
dm-log-userspace-transfer.h
dm-log.c
dm-mpath.c
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid1.c
dm-raid.c dm: raid fix write_mostly arg validation 2011-09-25 23:26:19 +01:00
dm-region-hash.c
dm-round-robin.c
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c
dm-stripe.c
dm-sysfs.c
dm-table.c dm crypt: always disable discard_zeroes_data 2011-09-25 23:26:21 +01:00
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c
dm.c dm table: set flush capability based on underlying devices 2011-08-02 12:32:08 +01:00
dm.h
faulty.c
Kconfig
linear.c
linear.h md/linear: avoid corrupting structure while waiting for rcu_free to complete. 2011-08-25 14:43:53 +10:00
Makefile
md.c md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
md.h md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
multipath.c md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
multipath.h
raid0.c
raid0.h
raid1.c md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
raid1.h
raid5.c md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
raid5.h
raid10.c md: Avoid waking up a thread after it has been freed. 2011-09-21 15:30:20 +10:00
raid10.h