dm kcopyd: reserve fewer pages
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 29 May 2011 12:03:11 +0000 (13:03 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sun, 29 May 2011 12:03:11 +0000 (13:03 +0100)
commit5f43ba2950414dc0abf4ac44c397d88069056746
treef80df9947ef30f965d9c33e649d1856f1e47220f
parentbda8efec5c706a672e0714d341a342e811f0262a
dm kcopyd: reserve fewer pages

Reserve just the minimum of pages needed to process one job.

Because we allocate pages from page allocator, we don't need to reserve
a large number of pages.  The maximum job size is SUB_JOB_SIZE and we
calculate the number of reserved pages based on this.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c
drivers/md/dm-raid1.c
drivers/md/dm-snap.c
include/linux/dm-kcopyd.h