OpenBSD cvs log

created 2020-12-13T00:49:05Z
begin 2020-12-11T00:00:00Z
end 2020-12-12T00:00:00Z
path src/sys
commits 4

date 2020-12-11T04:00:33Z
author cheloha
files src/sys/dev/ipmi.c log diff annotate
message ipmi(4): tsleep(9) -> tsleep_nsec(9)

Tested by sthen@.

ok mpi@

date 2020-12-11T05:00:21Z
author cheloha
files src/sys/net/bpf.c log diff annotate
src/sys/net/bpfdesc.h log diff annotate
message bpf(4): BIOCGRTIMEOUT, BIOCSRTIMEOUT: protect bd_rtout with bd_mtx

Reading and writing bd_rtout is not an atomic operation, so it needs
to be done under the per-descriptor mutex.

While here, start annotating locking in bpfdesc.h. There's lots more
to do on this front, but you have to start somewhere.

Tweaked by mpi@.

ok mpi@

date 2020-12-11T14:17:35Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
message Simplify filt_pipedetach()

By storing pipe pointer in kn_hook, filt_pipedetach() does not need
extra logic to find the correct pipe instance. This also lets the kernel
clear the knote lists fully.

OK anton@, mpi@

date 2020-12-11T19:48:58Z
author cheloha
files src/sys/dev/ipmi.c log diff annotate
message ipmi(4): ipmi_poll_thread(): remove sleep loop

This tsleep_nsec(9) call does not set PCATCH and there are no other
threads calling wakeup(9) so there is no need to spin until we get
EWOULDBLOCK. It always returns EWOULDBLOCK.

Idea from claudio@.

ok claudio@