]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tipc: simplify the finalize work queue
authorXin Long <lucien.xin@gmail.com>
Tue, 18 May 2021 02:09:08 +0000 (10:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:22:09 +0000 (13:22 -0700)
commitbe07f056396d6bb40963c45a02951c566ddeef8e
tree1c1d17db20a5f2977b5d796565e80ab651220855
parent1dde47a66d4fb181830d6fa000e5ea86907b639e
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>
net/tipc/core.c
net/tipc/core.h
net/tipc/discover.c
net/tipc/link.c
net/tipc/link.h
net/tipc/net.c