mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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>
This commit is contained in:
parent
83d5e5b0af
commit
2a7faeb176
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
@ -161,13 +168,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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue