OpenBSD cvs log

created 2020-01-18T02:22:45Z
begin 2020-01-16T00:00:00Z
end 2020-01-17T00:00:00Z
path src/sys
commits 5

date 2020-01-16T09:59:26Z
author mpi
files src/sys/dev/video.c log diff annotate
src/sys/dev/usb/uvideo.c log diff annotate
message Free data structures after closing the pseudo-device with vdevgone(9).

Pseudo-drivers exposing a userland interface generally start & stop I/O
in *_open() and *_close() respectively. So it isn't safe to detach such
device while it is still open, because I/O might still be in flight.

A more generic fix would be to detach children devices before the parents.

Fix a race reported by Kevin Chadwick on bugs@.

Discussed with Peter Stuge, tested by and ok zhuk@

date 2020-01-16T13:03:28Z
author mpi
files src/sys/arch/sparc64/dev/vdsp.c log diff annotate
message Convert to tsleep_nsec(9).

Tested by kn@, ok kettenis@, kn@

date 2020-01-16T15:35:22Z
author kettenis
files src/sys/uvm/uvm_vnode.c log diff annotate
message Use list for freeing pages in uvn_flush() to optimize freeing chunks of
contiguous pages.

ok beck@

date 2020-01-16T16:35:03Z
author mpi
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
message Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.

This moves most of the SCHED_LOCK() related to protecting the sleepqueue
and its states to kern/kern_sync.c

Name suggestion from jsg@, ok kettenis@, visa@

date 2020-01-16T16:35:04Z
author mpi
files src/sys/kern/kern_synch.c log diff annotate
src/sys/kern/sys_generic.c log diff annotate
src/sys/kern/vfs_sync.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Introduce wakeup_proc() a function to un-SSTOP/SSLEEP a thread.

This moves most of the SCHED_LOCK() related to protecting the sleepqueue
and its states to kern/kern_sync.c

Name suggestion from jsg@, ok kettenis@, visa@