Re: [RFC PATCH v7 0/4] blk-iocost: BPF struct_ops cost model

From: Tejun Heo

Date: Tue Sep 29 2026 - 12:30:41 EST


Hello, Tao.

On Tue, 29 Sep 2026 21:39:00 +0800, Tao Cui wrote:
> To make sure I understood correctly: attaching switches the active
> model to the attached BPF model, while model=linear and model=bpf
> only switch between the attached model and the builtin model without
> affecting the attachment itself. The attachment survives enable=0,
> and only .unreg removes it. Please shout if I still got that wrong.

Yes, except that removing the device also removes the attachment, as
ioc_rqos_exit() ejects the model.

Thanks.

--
tejun