CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2025/01/21 13:13:19

Modified files:
        sys/dev/wscons : wsevent.c wseventvar.h wskbd.c 

Log message:
Unlock wskbd(4) kqueue filterops.

Introduce the `ws_mtx' mutex(9) to protects wseventvar structure fields.
To reduce diffs size, unlock wscons(4) devices step-by-step, temporary
use dedicated `wsevent_klistops' to take kernel lock before mutex for
the non mp-safe drivers. It will be removed after complete wsevent
unlocking.

Note, pgsigio() takes kernel lock deep within and can't be called with
mutex(9) held, so call it lockless. This the compromise to make step
forward.

ok kirill bluhm

Reply via email to