[Devel] [PATCH VZ9 2/3] block/blk-cbt: allow multiple cbts in a single queue
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Wed Jan 22 12:49:53 MSK 2025
> @@ -272,6 +275,7 @@ static struct cbt_info *do_cbt_alloc(struct request_queue *q, __u8 *name,
> if (!cbt)
> return ERR_PTR(-ENOMEM);
>
> + INIT_LIST_HEAD(&cbt->list);
This initialization is excess, it is only required for a list_head we
add TO, the added list_head can be left uninitialized.
> cbt->block_bits = ilog2(blocksize);
> cbt->block_max = DIV_ROUND_UP(size, blocksize);
> spin_lock_init(&cbt->lock);
--
Best regards, Tikhomirov Pavel
Senior Software Developer, Virtuozzo.
More information about the Devel
mailing list