Thread (3 messages) 3 messages, 2 authors, 2022-08-27

Re: [PATCH] blk-mq: determine in advance whether batch alloc can be performed

From: Liu Song <hidden>
Date: 2022-08-27 13:11:06
Also in: lkml

On 2022/8/26 21:33, Jens Axboe wrote:
On 8/25/22 7:26 PM, Liu Song wrote:
quoted
From: Liu Song <redacted>

Some conditions for judging whether batch alloc can be performed are
included in "blk_mq_get_tags", and this function is only used by
"__blk_mq_alloc_requests_batch".

This patch introduced a helper "can_do_batch_alloc" to prepend the
judgment condition and avoid unnecessary function calls.
Curious if you saw any differences from this? Or do you just consider
it a cleanup?
Hi

This patch aggregates the judgment conditions for whether batch alloc 
can be used,
which can be considered as clean up.

If it can be determined at the first judgment that batch alloc cannot be 
used, the
overhead of calling "blk_mq_get_tags" once will be reduced, are some 
differences.


Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help