lkml.org 
[lkml]   [2016]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 1/1] percpu-refcount: do not forget to rcu_barrier() just before freeing
Hi,

On Thu, Aug 11, 2016 at 6:29 PM, Tejun Heo <tj@kernel.org> wrote:
> Hello, Roman.
>
> On Thu, Aug 11, 2016 at 11:07:14AM +0200, Roman Penyaev wrote:
>> Yes, exactly, this is an illegal operation. But it is not more illegal
>> than calling kill() twice or reinit() when counter is not yet zero.
>> And those illegals are covered with warnings, which can be observed
>> for example with this freeze/unfreeze blk-mq bug.
>
> I have no objections about adding warnings for these conditions;
> however, adding rcu barrier to mask illegal usages is a very different
> thing. That adds a lot of unnecessary latency to the exit function
> and makes it unusable from non-sleepable contexts.
>

Yes, for sure that makes sense. I changed the patch a little.
Have sent.

--
Roman

\
 
 \ /
  Last update: 2016-08-11 19:41    [W:0.050 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site