/*-----------------------------------------------------------------
* Each kcopyd client has its own little pool of preallocated
@@ -223,9 +224,6 @@ struct kcopyd_job {
struct kcopyd_job *master_job;
};
-/* FIXME: this should scale with the number of pages */
-#define MIN_JOBS 512
-
static struct kmem_cache *_job_cache;
int __init dm_kcopyd_init(void)
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
05-19-2011, 04:55 PM
Mikulas Patocka
Reserve just one mempool entry
Reserve just one mempool entry
If our implementation is deadlock-free, we don't need large mempool
reserve. Just one entry is enough.
Note that in normal case, when if there is no memory pressure, we can
still allocate arbitrary number of entries from the slab cache.
/*-----------------------------------------------------------------
* Each kcopyd client has its own little pool of preallocated
@@ -223,9 +224,6 @@ struct kcopyd_job {
struct kcopyd_job *master_job;
};
-/* FIXME: this should scale with the number of pages */
-#define MIN_JOBS 512
-
static struct kmem_cache *_job_cache;
int __init dm_kcopyd_init(void)
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel