Re: Reference counting struct inet_peer

2017-01-24 Thread David Miller
From: David Windsor Date: Mon, 23 Jan 2017 07:42:51 -0500 > struct inet_peer objects get freed when their reference count > becomes -1, not 0 as is the usual case. Is there a reason why this > is so? inet peer entries that sit in the tree, but have no other reference taken, have a reference cou

Re: Reference counting struct inet_peer

2017-01-24 Thread David Windsor
On Tue, Jan 24, 2017 at 2:38 AM, Julian Anastasov wrote: > > Hello, > > On Mon, 23 Jan 2017, David Windsor wrote: > >> Hi, >> >> I'm working on a patchset that adds overflow protection to kernel >> reference counters, as part of the KSPP effort. We're introducing a >> new type, tentativel

Re: Reference counting struct inet_peer

2017-01-23 Thread Julian Anastasov
Hello, On Mon, 23 Jan 2017, David Windsor wrote: > Hi, > > I'm working on a patchset that adds overflow protection to kernel > reference counters, as part of the KSPP effort. We're introducing a > new type, tentatively called refcount_t, that will ultimately replace > atomic_t as the t