diff options
| author | Jon Paul Maloy <[email protected]> | 2014-08-22 22:09:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-08-23 18:18:34 +0000 |
| commit | 9b50fd087a9f1454d6a8b613fff376dfb6d6ea93 (patch) | |
| tree | aa33132baefa002ee81a2cd2603ed7891ee0eecd /net/tipc/core.c | |
| parent | tipc: use registry when scanning sockets (diff) | |
| download | kernel-9b50fd087a9f1454d6a8b613fff376dfb6d6ea93.tar.gz kernel-9b50fd087a9f1454d6a8b613fff376dfb6d6ea93.zip | |
tipc: replace port pointer with socket pointer in registry
In order to make tipc_sock the only entity referencable from other
parts of the stack, we add a tipc_sock pointer instead of a tipc_port
pointer to the registry. As a consequence, we also let the function
tipc_port_lock() return a pointer to a tipc_sock instead of a tipc_port.
We keep the function's name for now, since the lock still is owned by
the port.
This is another step in the direction of eliminating port_lock, replacing
its usage with lock_sock() and bh_lock_sock().
Signed-off-by: Jon Maloy <[email protected]>
Reviewed-by: Erik Hugne <[email protected]>
Reviewed-by: Ying Xue <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/core.c')
0 files changed, 0 insertions, 0 deletions
