dm log userspace: split flush_entry_pool to be per dirty-log
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Feb 2015 20:20:35 +0000 (15:20 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 31 Mar 2015 16:03:47 +0000 (12:03 -0400)
commitac1f9ef211d5dd70110fa4bec6e8866b2c3a965e
tree7fea1ecaf18a74bf1e3fd48e3aebe13f36ed2970
parent851c9f38e4199adb612366f8e202036d624d5de2
dm log userspace: split flush_entry_pool to be per dirty-log

Use a single slab cache to allocate a mempool for each dirty-log.
This _should_ eliminate DM's need for io_schedule_timeout() in
mempool_alloc(); so io_schedule() should be sufficient now.

Also, rename struct flush_entry to dm_dirty_log_flush_entry to allow
KMEM_CACHE() to create a meaningful global name for the slab cache.

Also, eliminate some holes in struct log_c by rearranging members.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Heinz Mauelshagen <heinzm@redhat.com>
drivers/md/dm-log-userspace-base.c