• [$] Tracking when BPF programs may sleep

    From LWN.net@1337:1/100 to All on Monday, March 23, 2026 16:15:08
    [$] Tracking when BPF programs may sleep

    Date:
    Mon, 23 Mar 2026 16:00:38 +0000

    Description:
    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.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1062868/


    --- Mystic BBS v1.12 A49 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)