Messages in this thread | | | Date | Wed, 2 Jul 2014 09:30:53 -0400 | From | Tejun Heo <> | Subject | Re: kGraft to -next [was: 00/21 kGraft] |
| |
Hello,
On Wed, Jul 02, 2014 at 03:01:16PM +0200, Jiri Kosina wrote: > static inline bool try_to_freeze(void) > { > + kgr_task_safe(current); > + > if (!(current->flags & PF_NOFREEZE)) > debug_check_no_locks_held(); > return try_to_freeze_unsafe();
Heh, I'm totally confused now. Why is this correct? What guarantees that context is not carried across try_to_freeze()?
Thanks.
-- tejun
| |