dm kcopyd: prepare for callback race fix
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 9 Apr 2009 18:20:06 +0000 (18:20 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:59 +0000 (10:36 -0700)
commitf2fcdb15ebd2425d165c97c4d07fe10c8730ae23
tree27a5c704e1bb8d819bf08f5551c3e12eff943299
parent55e3b46ded854d9fc2408d0d15a6a5aea4986333
dm kcopyd: prepare for callback race fix

upstream commit: 73830857bca6f6c9dbd48e906daea50bea42d676

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/md/dm-kcopyd.c