Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1171148
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 12/13] stop_machine: Remove lglock |
| Date | 2015-06-24 09:40 +0200 |
| Message-ID | <pENrP-3eJ-7@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <pEuyR-18A-13@gated-at.bofh.it> <pEw7E-3uq-21@gated-at.bofh.it> <pEAkX-147-13@gated-at.bofh.it> <pEANY-1RJ-9@gated-at.bofh.it> <pEB7k-2e9-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jun 23, 2015 at 11:26:26AM -0700, Paul E. McKenney wrote: > > I really think you're making that expedited nonsense far too accessible. > > This has nothing to do with accessibility and everything to do with > robustness. And with me not becoming the triage center for too many > non-RCU bugs. But by making it so you're rewarding abuse instead of flagging it :-( > > > And we still need to be able to drop back to synchronize_sched() > > > (AKA wait_rcu_gp(call_rcu_sched) in this case) in case we have both a > > > creative user and a long-running RCU-sched read-side critical section. > > > > No, a long-running RCU-sched read-side is a bug and we should fix that, > > its called a preemption-latency, we don't like those. > > Yes, we should fix them. No, they absolutely must not result in a > meltdown of some unrelated portion of the kernel (like RCU), particularly > if this situation occurs on some system running a production workload > that doesn't happen to care about preemption latency. I still don't see a problem here though; the stop_one_cpu() invocation for the CPU that's suffering its preemption latency will take longer, but so what? How does polling and dropping back to sync_rcu() generate better behaviour than simply waiting for the completion? > > > > + stop_one_cpu(cpu, synchronize_sched_expedited_cpu_stop, NULL); > > > > > > My thought was to use smp_call_function_single(), and to have the function > > > called recheck dyntick-idle state, avoiding doing a set_tsk_need_resched() > > > if so. > > > > set_tsk_need_resched() is buggy and should not be used. > > OK, what API is used for this purpose? As per exception you (rcu) already have access to resched_cpu(), use that -- if it doesn't do what you need it to, we'll fix it, you're the only consumer of it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC][PATCH 12/13] stop_machine: Remove lglock Oleg Nesterov <oleg@redhat.com> - 2015-06-23 00:30 +0200
Re: [RFC][PATCH 12/13] stop_machine: Remove lglock "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-06-24 04:30 +0200
Re: [RFC][PATCH 12/13] stop_machine: Remove lglock Peter Zijlstra <peterz@infradead.org> - 2015-06-24 10:40 +0200
Re: [RFC][PATCH 12/13] stop_machine: Remove lglock Peter Zijlstra <peterz@infradead.org> - 2015-06-24 09:40 +0200
Re: [RFC][PATCH 12/13] stop_machine: Remove lglock Ingo Molnar <mingo@kernel.org> - 2015-06-24 10:50 +0200
csiph-web