Messages in this thread | | | Subject | Re: lockdep trace from posix timers | From | Peter Zijlstra <> | Date | Mon, 20 Aug 2012 17:46:49 +0200 |
| |
On Mon, 2012-08-20 at 17:32 +0200, Oleg Nesterov wrote:
> > I guess we could steal the entire list and requeue it afterwards and > > lift TIF_NOTIFY_RESUME along with it.. > > We can't. This can race with exit_task_work(). And this can break > fput(), the task can return to the userspace without __fput().
So we could put that spinlock back around cancel and run and leave add lockless. That'd solve my immediate problem but its not something I'm proud of.
All schemes I can come up with end up being broken or effectively the same as the above proposal.
| |