OpenBSD cvs log

created 2020-08-16T08:47:58Z
begin 2020-08-09T00:00:00Z
end 2020-08-10T00:00:00Z
path src/sys
commits 4

date 2020-08-09T13:29:08Z
author krw
files src/sys/scsi/scsiconf.c log diff annotate
message Shuffle functions and declarations around to more logical grouping. Nuke some
leading whitespace. Rename some local functions.

date 2020-08-09T14:33:49Z
author mvs
files src/sys/net/if_vether.c log diff annotate
message vether(4) is pretty dummy. It contains nothing requires to be protected.
So set `IFXF_MPSAFE' bit. This allows to discard outgoing packets without
kernel lock.

ok kn@

date 2020-08-09T15:06:01Z
author krw
files src/sys/scsi/scsiconf.c log diff annotate
message More code shuffling. Fix a rename missed in previous.

date 2020-08-09T19:15:47Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message hardclock(9): fix race with setitimer(2) for ITIMER_VIRTUAL, ITIMER_PROF

The ITIMER_VIRTUAL and ITIMER_PROF per-process interval timers are
updated from hardclock(9). If a timer for the parent process is
enabled the hardclock(9) thread calls itimerdecr() to update and
reload it as needed.

However, in itimerdecr(), after entering itimer_mtx, the thread needs
to double-check that the timer in question is still enabled. While
the hardclock(9) thread is entering itimer_mtx a thread in
setitimer(2) can take the mutex and disable the timer.

If the timer is disabled, itimerdecr() should return 1 to indicate
that the timer has not expired and that no action needs to be taken.

ok kettenis@