dm-kcopyd.c (7eaceaccab5f40bbfda044629a6298616aeaed50) dm-kcopyd.c (721a9602e6607417c6bc15b18e97a2f35266c690)
1/*
2 * Copyright (C) 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2006 Red Hat GmbH
4 *
5 * This file is released under the GPL.
6 *
7 * Kcopyd provides a simple interface for copying an area of one
8 * block-device to one or more other block-devices, with an asynchronous

--- 342 unchanged lines hidden (view full) ---

351 .mem.offset = job->offset,
352 .notify.fn = complete_io,
353 .notify.context = job,
354 .client = job->kc->io_client,
355 };
356
357 if (job->rw == READ)
358 r = dm_io(&io_req, 1, &job->source, NULL);
1/*
2 * Copyright (C) 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2006 Red Hat GmbH
4 *
5 * This file is released under the GPL.
6 *
7 * Kcopyd provides a simple interface for copying an area of one
8 * block-device to one or more other block-devices, with an asynchronous

--- 342 unchanged lines hidden (view full) ---

351 .mem.offset = job->offset,
352 .notify.fn = complete_io,
353 .notify.context = job,
354 .client = job->kc->io_client,
355 };
356
357 if (job->rw == READ)
358 r = dm_io(&io_req, 1, &job->source, NULL);
359 else {
360 if (job->num_dests > 1)
361 io_req.bi_rw |= REQ_UNPLUG;
359 else
362 r = dm_io(&io_req, job->num_dests, job->dests, NULL);
360 r = dm_io(&io_req, job->num_dests, job->dests, NULL);
363 }
364
365 return r;
366}
367
368static int run_pages_job(struct kcopyd_job *job)
369{
370 int r;
371

--- 312 unchanged lines hidden ---
361
362 return r;
363}
364
365static int run_pages_job(struct kcopyd_job *job)
366{
367 int r;
368

--- 312 unchanged lines hidden ---