Re: [PATCH v9 02/17] block: Only use write locking if necessary

Bart Van Assche
2023-08-17T14:21:56Z

On 8/17/23 04:01, Damien Le Moal wrote:
> On 8/17/23 04:53, Bart Van Assche wrote:
>> Make blk_req_needs_zone_write_lock() return false if
>> q->limits.use_zone_write_lock is false. Inline this function because it
>> is short and because it is called from the hot path of the mq-deadline
>> I/O scheduler.
>
> Your are not actually inlining the function. Did you forget to move it to
> blkdev.h ?

I considered inlining but eventually decided not to inline
blk_req_needs_zone_write_lock(). I will update the patch description.

Thanks,

Bart.