Re: [PATCH] blk-stat: Optimise blk_stat_add()

From: Jens Axboe
Date: Mon Oct 07 2019 - 23:18:02 EST


On 10/7/19 3:16 PM, Pavel Begunkov (Silence) wrote:
> From: Pavel Begunkov <asml.silence@xxxxxxxxx>
>
> blk_stat_add() calls {get,put}_cpu_ptr() in a loop, which entails
> overhead of disabling/enabling preemption. The loop is under RCU
> (i.e.short) anyway, so do get_cpu() in advance.

Looks good, applied for 5.5.

--
Jens Axboe