CVSROOT: /cvs Module name: src Changes by: v...@cvs.openbsd.org 2020/12/25 05:59:53
Modified files: sys/arch/arm64/dev: apm.c sys/arch/i386/i386: apm.c sys/arch/loongson/dev: apm.c sys/arch/macppc/dev: apm.c sys/arch/sparc64/dev: vldcp.c sys/dev : audio.c hotplug.c midi.c video.c vscsi.c sys/dev/acpi : acpi.c sys/dev/pci/drm: drm_drv.c sys/dev/usb : ugen.c uhid.c sys/dev/wscons : wsevent.c sys/isofs/cd9660: cd9660_vnops.c sys/kern : kern_event.c kern_sig.c subr_log.c sys_pipe.c tty.c tty_pty.c uipc_socket.c sys/miscfs/fifofs: fifo_vnops.c sys/miscfs/fuse: fuse_device.c fuse_vnops.c sys/msdosfs : msdosfs_vnops.c sys/net : bpf.c if_pppx.c if_tun.c switchctl.c sys/nfs : nfs_kq.c sys/sys : event.h sys/tmpfs : tmpfs_vnops.c sys/ufs/ufs : ufs_vnops.c Log message: Refactor klist insertion and removal Rename klist_{insert,remove}() to klist_{insert,remove}_locked(). These functions assume that the caller has locked the klist. The current state of locking remains intact because the kernel lock is still used with all klists. Add new functions klist_insert() and klist_remove() that lock the klist internally. This allows some code simplification. OK mpi@