Re: restart_syscall: use freezable blocking call

From: Tejun Heo
Date: Thu Apr 02 2015 - 13:34:19 EST


On Thu, Apr 02, 2015 at 07:25:13PM +0200, Peter Zijlstra wrote:
> On Thu, Apr 02, 2015 at 12:03:08PM -0400, Sasha Levin wrote:
> > It's not correct.
>
> Yay for lockdep ;-)
>
> > [ 0.645644] debug_check_no_locks_held (kernel/locking/lockdep.c:4178)
>
> Should we also have that call in freezer_do_not_count() ?

I think conerting a general scheduling function like
schedule_hrtimeout to do freezable sleeps blindly is a pretty bad
idea. This must be determined per specific sleep site.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/