Re: [RFC 1/2] block: Introduce the UFQ I/O scheduler
From: Alexei Starovoitov
Date: Fri Mar 27 2026 - 10:25:59 EST
On Fri, Mar 27, 2026 at 4:49 AM Chengkaitao <pilgrimtao@xxxxxxxxx> wrote:
>
> +
> +__bpf_kfunc bool bpf_request_put(struct request *rq)
> +{
> + if (req_ref_put_and_test(rq))
> + return false;
> +
> + return true;
> +}
...
> +BTF_ID_FLAGS(func, bpf_request_put)
I bet you knew this is not safe and despite that you still
decided to hack it this way.
This corner cutting is a red flag for this patchset and
your link list patches.
Since you got caught doing this you need to prove much harder
that you know what you're doing and there are no other safety issues.