On 01/29/2019 02:21 AM, Alexei Starovoitov wrote:
> From: Peter Zijlstra <[email protected]>
> 
> Introduce cant_sleep() macro for annotation of functions that cannot sleep.
> 
> Use it in BPF_PROG_RUN to catch execution of BPF programs
> in preemptable context.
> 
> Suggested-by: Jann Horn <[email protected]>
> Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
> Signed-off-by: Alexei Starovoitov <[email protected]>

(Just fyi, will let this sit in patchwork till the preemption fixes have been
merged back from bpf into bpf-next as otherwise people will yell that they
hit this frequently.)

Reply via email to