Commit 2a7faeb1 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Alasdair G Kergon

dm: optimize reorder structure

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 83d5e5b0
...@@ -133,6 +133,13 @@ struct mapped_device { ...@@ -133,6 +133,13 @@ struct mapped_device {
atomic_t holders; atomic_t holders;
atomic_t open_count; 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; unsigned long flags;
struct request_queue *queue; struct request_queue *queue;
...@@ -161,13 +168,6 @@ struct mapped_device { ...@@ -161,13 +168,6 @@ struct mapped_device {
*/ */
struct workqueue_struct *wq; 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. * io objects are allocated from here.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment