CVS: cvs.openbsd.org: src
Vitaliy Makkoveev <[email protected]>
| Newsgroups | gmane.os.openbsd.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVSROOT: /cvs Module name: src Changes by: [email protected] 2026/07/12 09:49:45 Modified files: sys/kern : kern_sysctl.c sysv_msg.c sysv_sem.c sysv_shm.c sys/sys : sem.h shm.h Log message: Move SysV sysctl(2) handlers out of sysctl_vslock(). They don't need to wire userland pages, but have sleeping malloc() calls which could block the locked sysctl(2) paths. Introduce rwlocks to serialize access to `seminfo' and `shminfo' respectively. The whole SysV IPC layer relies on kernel lock, but sysctl_sysvsem() and sysctl_sysvshm() paths have context switch requires the extra serialization. Joint work with and OK from kirill.