On Thu, Mar 27, 2025 at 10:18:19AM +0800, LongPing Wei wrote:
> try_verify_in_tasklet
> If verity hashes are in cache, verify data blocks in kernel tasklet
> instead
> - of workqueue. This option can reduce IO latency.
> + of workqueue. This option can reduce IO latency.
The above is really overdue for an update (tasklets aren't actually used
anymore), but that can be done in a separate patch...
> + The size limits could be configured
could => can
> + if (static_branch_unlikely(&use_bh_wq_enabled) && io->v->use_bh_wq &&
> + verity_use_bh(bio->bi_iter.bi_size, ioprio)) {
bi_size is always 0 here since the iterator was already advanced.
dm_verity_io::n_blocks needs to be used instead.
- Eric