CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2018/05/17 05:04:14
Modified files: sys/net : if.c Log message: Move the handling of SIOCIFGCLONERS out of the NET_RLOCK(). The global &if_clone list and the if_cloners_count are currently protected by the KERNEL_LOCK(). Introduce the ifclonerslk rwlock to serialize access to these two globals as a small step towards removing the KERNEL_LOCK() from the ioctl path. While there, separate the two codepaths in if_clone_list() more clearly and replace a ternary operator with MIN(). guidance & ok mpi, ok visa