[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160125193836.GH3628@mtj.duckdns.org>
Date: Mon, 25 Jan 2016 14:38:36 -0500
From: Tejun Heo <tj@...nel.org>
To: Christoph Hellwig <hch@....de>
Cc: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Peter Zijlstra <peterz@...radead.org>,
Christian Borntraeger <borntraeger@...ibm.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
"linux-kernel@...r.kernel.org >> Linux Kernel Mailing List"
<linux-kernel@...r.kernel.org>,
linux-s390 <linux-s390@...r.kernel.org>,
KVM list <kvm@...r.kernel.org>, Oleg Nesterov <oleg@...hat.com>
Subject: Re: regression 4.4: deadlock in with cgroup percpu_rwsem
Hello, Christoph.
On Mon, Jan 25, 2016 at 09:49:42AM +0100, Christoph Hellwig wrote:
> FYI, my use case was also related to percpu-ref. The percpu ref API
> is unfortunately really hard to use and will almost always involve
> a work queue due to the complex interaction between percpu_ref_kill
> and percpu_ref_exit. One thing that would help a lot of callers would
That's interesting. Can you please elaborate on how kill and exit
interact to make things complex?
> be a percpu_ref_exit_sync that kills the ref and waits for all references
> to go away synchronously.
That shouldn't be difficult to implement. One minor concern is that
it's almost guaranteed that there will be cases where the
synchronicity is exposed to userland. Anyways, can you please
describe the use case?
Thanks.
--
tejun
Powered by blists - more mailing lists