[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180911163856.GB2966370@devbig004.ftw2.facebook.com>
Date: Tue, 11 Sep 2018 09:38:56 -0700
From: Tejun Heo <tj@...nel.org>
To: Ming Lei <ming.lei@...hat.com>
Cc: linux-kernel@...r.kernel.org,
Jianchao Wang <jianchao.w.wang@...cle.com>,
Kent Overstreet <kent.overstreet@...il.com>,
linux-block@...r.kernel.org
Subject: Re: [PATCH] percpu-refcount: relax limit on percpu_ref_reinit()
Hello, Ming.
On Wed, Sep 12, 2018 at 12:34:44AM +0800, Ming Lei wrote:
> > Why aren't switch_to_atomic/percpu enough?
>
> The blk-mq's use case is this _reinit is done on one refcount which was
> killed via percpu_ref_kill(), so the DEAD flag has to be cleared.
If you killed and waited until kill finished, you should be able to
re-init. Is it that you want to kill but abort killing in some cases?
How do you then handle the race against release? Can you please
describe the exact usage you have on mind?
Thanks.
--
tejun
Powered by blists - more mailing lists