dm kcopyd: prepare for callback race fix
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 8 Apr 2009 23:27:16 +0000 (00:27 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 8 Apr 2009 23:27:16 +0000 (00:27 +0100)
commit73830857bca6f6c9dbd48e906daea50bea42d676
tree1d68ff2f2da69fea4ba3fe720bbfc32507a5f7e3
parentaf7e466a1acededbc10beaba9eec8531d561c566
dm kcopyd: prepare for callback race fix

Use a variable in segment_complete() to point to the dm_kcopyd_client
struct and only release job->pages in run_complete_job() if any are
defined.  These changes are needed by the next patch.

Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c