• [$] Tracking when BPF programs may sleep

    From LWN.net@618:250/24 to All on Tue Mar 24 06:40:08 2026


    BPF programs can run in both sleepable and non-sleepable (atomic) contexts. Currently, sleepable BPF programs are not allowed to enter an atomic context. Puranjay Mohan has a

    new patch set that changes that. The patch set would let BPF programs called
    in sleepable contexts temporarily acquire locks that cause the programs to transition to an atomic context. BPF maintainer Alexei
    Starovoitov objected to parts of the implementation, however, so acceptance of the patch depends on whether Mohan is willing and able to straighten it out.

    https://lwn.net/Articles/1062868/
    --- SBBSecho 3.37-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (618:250/24)