On 02/14, Mandeep Singh Baines wrote: > > We shouldn't try_to_freeze if locks are held. Verified that > I get no lockdep warnings after applying this patch and > "vfork: don't freezer_count() for in-kernel users of CLONE_VFORK".
Ah. Now I understand why you did 1/5. Beacuse you call debug_check_no_locks_held() right at the start of try_to_freeze(), even if the caller can't be frozen. > static inline bool try_to_freeze(void) > { > + debug_check_no_locks_held(current); > might_sleep(); > if (likely(!freezing(current))) > return false; Up to maintainers, but perhaps you should check !PF_NOFREEZE at least? Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/