git: kernel - Refactor inum stat data for sockets

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 21 13:09:04 PST 2018


commit c6e47da61938d7830788a51e33c44de4c17bd805
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 21 13:06:24 2018 -0800

    kernel - Refactor inum stat data for sockets
    
    * Assign a dummy inode number to all sockets.  We previously were
      only assigning a dummy inode number to unix domain sockets.  Use
      the new pcpu facility and store the inum in the socket structure.
    
    * Rip out the old inode number assigner for unix domain sockets, it
      was using an atomic_fetchadd_long() on a global variable, introducing
      unnecessary SMP stalls.  And it was specific to unix domain sockets.
      The new facility is generic to all sockets and uses a pcpu data
      structure.

Summary of changes:
 sys/kern/sys_socket.c  | 2 ++
 sys/kern/uipc_socket.c | 2 ++
 sys/kern/uipc_usrreq.c | 7 -------
 sys/sys/socketvar.h    | 3 +++
 sys/sys/unpcb.h        | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c6e47da61938d7830788a51e33c44de4c17bd805


-- 
DragonFly BSD source repository


More information about the Commits mailing list