Re: Implement complete_all() with swait
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2016-10-28 13:37:17
Also in:
lkml
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2016-10-28 13:37:17
Also in:
lkml
On Fri, 28 Oct 2016 09:17:04 +0200 Daniel Wagner [off-list ref] wrote:
So I went through the list of users and tried to identify which of them is going to make troubles. I found 4 users which are using complete_all() while IRQs are disabled. The rest looks like it just would work nice. I already fixed up a bunch of drivers which use complete_all() just to make really sure the single waiter is woken up. This list does only contain proper complete_all() users.
I wonder if we can just create a separate thread or workqueue that performs the complete all, and have the callers of complete_all() that are currently under irqs disabled simply wake up the thread/workqueue to perform the complete_all() with interrupts enabled? -- Steve