]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit401f13a3ba3daa60748a04e6b4cd3df69a18a381
tree7fea1ecaf18a74bf1e3fd48e3aebe13f36ed2970
parentf56c6cf7bac5cb74c8cc5a6b9c4dea20ff919ce6
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