Re: [RFC PATCH 0/4] Add hazard pointers to kernel

From: Christoph Hellwig
Date: Thu Sep 19 2024 - 10:15:16 EST


On Wed, Sep 18, 2024 at 09:18:43AM +0200, Linus Torvalds wrote:
> On Tue, 17 Sept 2024 at 16:34, Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
> >
> > This series introduces hazard pointers [1] to kernel space. A TL;DR
> > description of hazard pointers is "a scalable refcounting mechanim
> > with RCU-like API". More information can be found at [2].
>
> Please give actual "this is useful for X, and here is an actual real
> load with numbers showing why it matters".

Agreed. From the description this would seem like a good fit for
q_usage_counter in the block layer, which currently makes creative use
of percpu counters.