[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5bd4f538-f205-1134-d491-5a8727855b51@gmail.com>
Date: Wed, 4 Sep 2019 20:17:18 +0200
From: Viktor Rosendahl <viktor.rosendahl@...il.com>
To: Peter Zijlstra <peterz@...radead.org>,
Joel Fernandes <joel@...lfernandes.org>
Cc: paulmck@...nel.org, Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
linux-rt-users@...r.kernel.org
Subject: Re: [PATCH v5 1/4] ftrace: Implement fs notification for
tracing_max_latency
On 9/4/19 10:19 AM, Peter Zijlstra wrote:
>>
>> Adding Paul since RCU faces similar situations, i.e. raising softirq risks
>> scheduler deadlock in rcu_read_unlock_special() -- but RCU's solution is to
>> avoid raising the softirq and instead use irq_work.
>
> Which is right.
>
Thanks Joel and Peter for suggesting the irq_work facility.
I was ignorant of the existence of this facility.
It looks like it is the Holy Grail of deferred work, for this particular
type of problem :)
It looks like it will be possible to both avoid deadlock and also avoid
the ugly additions to the sched and idle code. In addition, the rest of
the code will become a lot simpler.
best regards,
Viktor
Powered by blists - more mailing lists