Re: Make pipes and sockets use KNOTE() instead of selwakeup()

2022-05-23 Thread Visa Hankala
On Tue, Feb 08, 2022 at 09:12:11AM +, Visa Hankala wrote: > Now that poll(2) is based on kqueue, the old, non-MP-safe poll backend > is not used any longer. Event sources can call KNOTE() directly instead > of selwakeup(). > > This diff does the KNOTE() conversion for pipes and sockets,

Re: Make pipes and sockets use KNOTE() instead of selwakeup()

2022-04-25 Thread Visa Hankala
On Tue, Feb 08, 2022 at 09:12:11AM +, Visa Hankala wrote: > Now that poll(2) is based on kqueue, the old, non-MP-safe poll backend > is not used any longer. Event sources can call KNOTE() directly instead > of selwakeup(). > > This diff does the KNOTE() conversion for pipes and sockets,

Make pipes and sockets use KNOTE() instead of selwakeup()

2022-02-08 Thread Visa Hankala
Now that poll(2) is based on kqueue, the old, non-MP-safe poll backend is not used any longer. Event sources can call KNOTE() directly instead of selwakeup(). This diff does the KNOTE() conversion for pipes and sockets, removing a kernel-locked section from a frequently used code path. The