From: Oleg Nesterov Subject: Re: [PATCH 08/26] exit: Make the runqueue rcu safe Date: Wed, 7 Jun 2017 15:16:50 +0200 Message-ID: <20170607131650.GA23434@redhat.com> References: <877f0pym71.fsf@xmission.com> <20170606190338.28347-1-ebiederm@xmission.com> <20170606190338.28347-8-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170606190338.28347-8-ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Eric W. Biederman" Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linus Torvalds , Ingo Molnar , Thomas Gleixner , Kees Cook , Roland McGrath , Al Viro , David Howells , "Michael Kerrisk (man-pages)" List-Id: linux-api@vger.kernel.org On 06/06, Eric W. Biederman wrote: > > Add a rcu_usage to task_struct and use it to reuse the delayed rcu put > logic from release_task in finish_task_switch. I didn't really read this patch yet, but it first glance it should work and you can also remove the ->exit_state check/limitation in rcuwait_wait_event(). Oleg.