summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-03-17 17:13:10 -0400
committerMike Snitzer <snitzer@redhat.com>2016-05-05 15:25:52 -0400
commit20800cb3450ee44ec1827d7e8bbfd5a9dc02e6cd (patch)
treeb8301f9bf384ec9e76ee6a422c403eb458a77cc5
parent91e968aa6015d7366281b532dad2e48855b91fe3 (diff)
downloadop-kernel-dev-20800cb3450ee44ec1827d7e8bbfd5a9dc02e6cd.zip
op-kernel-dev-20800cb3450ee44ec1827d7e8bbfd5a9dc02e6cd.tar.gz
dm mpath: move trigger_event member to the end of 'struct multipath'
Allows the 'work_mutex' member to no longer cross a cacheline. Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r--drivers/md/dm-mpath.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 780e5d0..54daf96 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -89,8 +89,6 @@ struct multipath {
atomic_t pg_init_in_progress; /* Only one pg_init allowed at once */
atomic_t pg_init_count; /* Number of times pg_init called */
- struct work_struct trigger_event;
-
/*
* We must use a mempool of dm_mpath_io structs so that we
* can resubmit bios on error.
@@ -98,6 +96,7 @@ struct multipath {
mempool_t *mpio_pool;
struct mutex work_mutex;
+ struct work_struct trigger_event;
};
/*
OpenPOWER on IntegriCloud