Re: kthread_stop insanity (Re: [[DEBUG] force] 2642458962: BUG: unable to handle kernel paging request at ffffc90000997f18)

From: Linus Torvalds
Date: Tue Jun 28 2016 - 17:35:24 EST


On Tue, Jun 28, 2016 at 2:21 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> Or are you
> suggesting that we actually make a list somewhere of stacks that are
> nominally unused but are still around for RCU's benefit and then
> scavenge from that lest when we need a new stack?

Yes. We'd have to make our own list (rather than just use the RCU list
itself where everything goes), but..

> If so, that seems considerably more complicated than just adding a reference count.

Fair enough.

Linus