aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2010-02-02 14:08:14 -0500
committerRoland Dreier <rolandd@cisco.com>2010-02-24 13:23:42 -0500
commit830a38713816fb1f0d05efc339bf41e91ac74379 (patch)
treebb4df918400d0ef9d2be4c5af1529172ace3e582 /drivers
parent6d6a0e71eec5886f2511632a38f28f1ed7794d70 (diff)
IB/uverbs: Pack struct ib_uverbs_event_file tighter
Eliminate some padding in the structure by rearranging the members. sizeof(struct ib_uverbs_event_file) is now 72 bytes (from 80) and more members now fit in the first cacheline. Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/core/uverbs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/uverbs.h b/drivers/infiniband/core/uverbs.h
index e695f65328a3..e54d9ac6d1ca 100644
--- a/drivers/infiniband/core/uverbs.h
+++ b/drivers/infiniband/core/uverbs.h
@@ -80,13 +80,13 @@ struct ib_uverbs_device {
80 80
81struct ib_uverbs_event_file { 81struct ib_uverbs_event_file {
82 struct kref ref; 82 struct kref ref;
83 int is_async;
83 struct ib_uverbs_file *uverbs_file; 84 struct ib_uverbs_file *uverbs_file;
84 spinlock_t lock; 85 spinlock_t lock;
86 int is_closed;
85 wait_queue_head_t poll_wait; 87 wait_queue_head_t poll_wait;
86 struct fasync_struct *async_queue; 88 struct fasync_struct *async_queue;
87 struct list_head event_list; 89 struct list_head event_list;
88 int is_async;
89 int is_closed;
90}; 90};
91 91
92struct ib_uverbs_file { 92struct ib_uverbs_file {