diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2013-07-10 23:41:18 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-07-10 23:41:18 +0100 |
commit | 2a7faeb176fb0478bc6a0cb380c658b32179ead0 (patch) | |
tree | 25916d4ccb6887890e5e1d2a18cb1093863d7f32 /drivers/md | |
parent | 83d5e5b0af907d46d241a86d9e44003b3f0accbd (diff) | |
download | blackbird-obmc-linux-2a7faeb176fb0478bc6a0cb380c658b32179ead0.tar.gz blackbird-obmc-linux-2a7faeb176fb0478bc6a0cb380c658b32179ead0.zip |
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: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index ecff83f5b53a..9e39d2b64bf8 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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; |