dm-optimize: reorder structures This reorder actually improves performance by 20% (from 39.1s to 32.8s) on x86-64 quad core Opteron. I have no explanation for this, possibly it makes some other entries are better cache-aligned. Signed-off-by: Mikulas Patocka --- drivers/md/dm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Index: linux-3.8-rc1-fast/drivers/md/dm.c =================================================================== --- linux-3.8-rc1-fast.orig/drivers/md/dm.c 2013-01-02 23:25:41.000000000 +0100 +++ linux-3.8-rc1-fast/drivers/md/dm.c 2013-01-02 23:25:48.000000000 +0100 @@ -133,6 +133,13 @@ struct mapped_device { atomic_t holders; atomic_t open_count; + /* + * The current mapping. + * Use dm_get_live_table{_fast} or take suspend_lock for + * dereference. + */ + struct dm_table *map; + unsigned long flags; struct request_queue *queue; @@ -162,13 +169,6 @@ struct mapped_device { struct workqueue_struct *wq; /* - * The current mapping. - * Use dm_get_live_table{_fast} or take suspend_lock for - * dereference. - */ - struct dm_table *map; - - /* * io objects are allocated from here. */ mempool_t *io_pool;