tipc: convert tipc_bearers array to pointer list
As part of the effort to introduce RCU protection for the bearer list, we first need to change it to a list of pointers. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Erik Hugne <erik.hugne@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -668,9 +668,8 @@ void tipc_bcbearer_sort(void)
|
||||
memset(bp_temp, 0, sizeof(bcbearer->bpairs_temp));
|
||||
|
||||
for (b_index = 0; b_index < MAX_BEARERS; b_index++) {
|
||||
struct tipc_bearer *b = &tipc_bearers[b_index];
|
||||
|
||||
if (!b->active || !b->nodes.count)
|
||||
struct tipc_bearer *b = bearer_list[b_index];
|
||||
if (!b || !b->active || !b->nodes.count)
|
||||
continue;
|
||||
|
||||
if (!bp_temp[b->priority].primary)
|
||||
|
在新工单中引用
屏蔽一个用户