Re: [PATCH bpf-next v2 13/16] bpf: wq: add bpf_wq_set_callback_impl

2024-04-23 Thread Alexei Starovoitov
On Sat, Apr 20, 2024 at 2:10 AM Benjamin Tissoires wrote: > @@ -11018,6 +11027,7 @@ enum special_kfunc_type { > KF_bpf_percpu_obj_drop_impl, > KF_bpf_throw, > KF_bpf_iter_css_task_new, > + KF_bpf_wq_set_callback_impl, > }; > > BTF_SET_START(special_kfunc_set) > @@

[PATCH bpf-next v2 13/16] bpf: wq: add bpf_wq_set_callback_impl

2024-04-20 Thread Benjamin Tissoires
To support sleepable async callbacks, we need to tell push_async_cb() whether the cb is sleepable or not. The verifier now detects that we are in bpf_wq_set_callback_impl and can allow a sleepable callback to happen. Signed-off-by: Benjamin Tissoires --- changes in v2: - dropped flags check