From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: [PATCH 0/1] (Was: freezer: add missing mb's to freezer_count() and freezer_should_skip()) Date: Thu, 25 Oct 2012 18:39:41 +0200 Message-ID: <20121025163941.GA3801@redhat.com> References: <1350426526-14254-1-git-send-email-tj@kernel.org> <1350426526-14254-3-git-send-email-tj@kernel.org> <20121022174404.GA21553@redhat.com> <20121022211317.GD5951@atj.dyndns.org> <20121023153919.GA16201@redhat.com> <20121024185710.GA12182@atj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20121024185710.GA12182-OlzNCW9NnSVy/B6EtB590w@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tejun Heo Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rjw-KKrjLPT3xs0@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Tejun, On 10/24, Tejun Heo wrote: > Hello, Oleg. > > On Tue, Oct 23, 2012 at 05:39:19PM +0200, Oleg Nesterov wrote: > > > Hmm.... Guess we should drop __ from set_current_state. > > > > Yes. > > > > Or we can change ptrace_stop() and do_signal_stop() to use freezer_do_not_count/ > > freezer_count and remove task_is_stopped_or_traced() from update_if_frozen() > > and try_to_freeze_tasks(). But this means that do_signal_stop() will call > > try_to_freeze() twice, unless we add __freezer_count() which only clears > > PF_FREEZER_SKIP. > > Ooh, I like this idea. If we have a mechanism to mark a task "frozen > enough", it makes sense to use it universally. Yes, I agree. Fortunately we already have freezable_schedule() so this patch is really simple. On top of this series. Oleg.