tipc: simplify the finalize work queue
This patch is to use "struct work_struct" for the finalize work queue instead of "struct tipc_net_work", as it can get the "net" and "addr" from tipc_net's other members and there is no need to add extra net and addr in tipc_net by defining "struct tipc_net_work". Note that it's safe to get net from tn->bcl as bcl is always released after the finalize work queue is done. Signed-off-by:Xin Long <lucien.xin@gmail.com> Acked-by:
Jon Maloy <jmaloy@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/tipc/core.c 2 additions, 2 deletionsnet/tipc/core.c
- net/tipc/core.h 1 addition, 7 deletionsnet/tipc/core.h
- net/tipc/discover.c 2 additions, 2 deletionsnet/tipc/discover.c
- net/tipc/link.c 5 additions, 0 deletionsnet/tipc/link.c
- net/tipc/link.h 1 addition, 0 deletionsnet/tipc/link.h
- net/tipc/net.c 3 additions, 12 deletionsnet/tipc/net.c
Loading
Please register or sign in to comment