Re: [RFC PATCH 4/8] blk-iocost: dispatch cost calculation to registered BPF model

From: Tejun Heo

Date: Tue Sep 08 2026 - 17:34:04 EST


Hello, Tao.

On Tue, 08 Sep 2026 18:01:39 +0800, Tao Cui wrote:

> + if (iocost_bpf_calc_cost(bio_op(bio),
> + bio->bi_iter.bi_size,
> + bio->bi_iter.bi_sector,
> + iocg->cursor,
> + iocg_to_blkg(iocg)->blkcg->css.id,
> + is_merge ? IOCOST_COST_F_MERGE : 0,

bio_op() drops REQ_PREFLUSH and REQ_FUA, and the flags argument only carries
merge status. Please preserve the operation flags.

Thanks.

--
tejun