Page MenuHomeFreeBSD

linux(4): Microoptimize rt_sendsig() on amd64.
ClosedPublic

Authored by dchagin on Feb 1 2023, 11:08 AM.
Tags
None
Referenced Files
F154399325: D38326.id.diff
Tue, Apr 28, 8:39 AM
F154394708: D38326.id116182.diff
Tue, Apr 28, 8:04 AM
Unknown Object (File)
Mon, Apr 27, 3:59 AM
Unknown Object (File)
Fri, Apr 24, 5:49 AM
Unknown Object (File)
Mon, Apr 20, 12:11 AM
Unknown Object (File)
Sun, Apr 19, 8:11 PM
Unknown Object (File)
Thu, Apr 16, 4:33 PM
Unknown Object (File)
Tue, Apr 14, 8:36 PM
Subscribers

Details

Summary

Drop proc lock earlier, before copying user stuff.

Pointed out by: kib

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49398
Build 46288: arc lint + arc unit

Event Timeline

in the expectation:
ksiginfo_t *ksi
sigset_t *mask
both are on stack and do not need to proc lock

sys/amd64/linux/linux_sysvec.c
481

Strictly speaking, you can unlock right before this line.

sure, I left these lines together as a unit of code for sp,
now done.

This revision is now accepted and ready to land.Feb 1 2023, 9:28 PM