Thread (1 message) 1 message, 1 author, 2016-07-05

Re: [PATCH for-next 1/2] IB/sa: Add cached attribute containing SM information to SA port

From: Or Gerlitz <hidden>
Date: 2016-07-05 10:37:00

On Sun, Jul 3, 2016 at 3:47 PM, Leon Romanovsky [off-list ref] wrote:
quoted hunk
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
quoted hunk
 struct ib_sa_port {
-       struct ib_mad_agent *agent;
-       struct ib_sa_sm_ah  *sm_ah;
-       struct work_struct   update_task;
-       spinlock_t           ah_lock;
-       u8                   port_num;
+       struct ib_mad_agent             *agent;
+       struct ib_sa_sm_ah              *sm_ah;
+       struct work_struct              update_task;
please avoid re-spacing/tabbing/moving existing structure fields around when
you introduce new fields
quoted hunk
+       struct ib_sa_classport_cache    classport_info;
+       spinlock_t                      classport_lock; /* protects class port info set */
+       spinlock_t                      ah_lock;
+       u8                              port_num;
 };
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help