From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755038AbcKNS6W (ORCPT ); Mon, 14 Nov 2016 13:58:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51178 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbcKNS6V (ORCPT ); Mon, 14 Nov 2016 13:58:21 -0500 Date: Mon, 14 Nov 2016 19:58:17 +0100 From: Oleg Nesterov To: Ingo Molnar , Linus Torvalds , Mike Galbraith , Peter Zijlstra Cc: hartsjc@redhat.com, vbendel@redhat.com, vlovejoy@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] sched/autogroup: a zombie thread must not use autogroup->tg Message-ID: <20161114185817.GA15995@redhat.com> References: <20161114184548.GA15954@redhat.com> <20161114184612.GA15968@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161114184612.GA15968@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 14 Nov 2016 18:58:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14, Oleg Nesterov wrote: > > +void sched_autogroup_exit_task(struct task_struct *p) > +{ > + /* > + * We are going to call exit_notify() and autogroup_move_group() can't > + * see this thread after that: we can no longer use signal->autogroup. > + * See the PF_EXITING check in task_wants_autogroup(). > + */ > + sched_move_task(p); We only need it if task_group_is_autogroup(task_group(p)) but then this code will need even more comments, lets keep it simple. Oleg.