]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit196249fd908897b344c9d001e1f1323c0c05b634
tree1d68ff2f2da69fea4ba3fe720bbfc32507a5f7e3
parent9c11399e155bbd6b87ed89d95439c1c94760bee8
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