Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142896
b: refs/heads/master
c: 7383085
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Apr 8, 2009
1 parent 281cb7a commit 9137b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af7e466a1acededbc10beaba9eec8531d561c566
refs/heads/master: 73830857bca6f6c9dbd48e906daea50bea42d676
6 changes: 4 additions & 2 deletions trunk/drivers/md/dm-kcopyd.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ static int run_complete_job(struct kcopyd_job *job)
dm_kcopyd_notify_fn fn = job->fn;
struct dm_kcopyd_client *kc = job->kc;

kcopyd_put_pages(kc, job->pages);
if (job->pages)
kcopyd_put_pages(kc, job->pages);
mempool_free(job, kc->job_pool);
fn(read_err, write_err, context);

Expand Down Expand Up @@ -461,6 +462,7 @@ static void segment_complete(int read_err, unsigned long write_err,
sector_t progress = 0;
sector_t count = 0;
struct kcopyd_job *job = (struct kcopyd_job *) context;
struct dm_kcopyd_client *kc = job->kc;

mutex_lock(&job->lock);

Expand Down Expand Up @@ -490,7 +492,7 @@ static void segment_complete(int read_err, unsigned long write_err,

if (count) {
int i;
struct kcopyd_job *sub_job = mempool_alloc(job->kc->job_pool,
struct kcopyd_job *sub_job = mempool_alloc(kc->job_pool,
GFP_NOIO);

*sub_job = *job;
Expand Down

0 comments on commit 9137b11

Please sign in to comment.