[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e5df36bc-1beb-403c-8fe6-624fecc938a2@kernel.dk>
Date: Mon, 7 Oct 2019 21:17:54 -0600
From: Jens Axboe <axboe@...nel.dk>
To: "Pavel Begunkov (Silence)" <asml.silence@...il.com>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] blk-stat: Optimise blk_stat_add()
On 10/7/19 3:16 PM, Pavel Begunkov (Silence) wrote:
> From: Pavel Begunkov <asml.silence@...il.com>
>
> 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
Powered by blists - more mailing lists