]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: call tsk_set_importance from tipc_topsrv_create_listener
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:36 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:46 +0000 (11:11 -0700)
commitb358e0f927c14e16d0fbe428c99f5aa67d623ff4
tree79271cfd7014dfd17cdb32495757374c7e1c18c4
parent94c9b8a6f43936b4af8184a6d3095ca2390a72d0
tipc: call tsk_set_importance from tipc_topsrv_create_listener

Avoid using kernel_setsockopt for the TIPC_IMPORTANCE option when we can
just use the internal helper.  The only change needed is to pass a struct
sock instead of tipc_sock, which is private to socket.c

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c
net/tipc/socket.h
net/tipc/topsrv.c