From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by kanga.kvack.org (Postfix) with ESMTP id 9A5FF6B0032 for ; Sat, 6 Dec 2014 07:56:21 -0500 (EST) Received: by mail-qa0-f45.google.com with SMTP id x12so1613416qac.18 for ; Sat, 06 Dec 2014 04:56:21 -0800 (PST) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com. [2607:f8b0:400d:c04::22f]) by mx.google.com with ESMTPS id q19si28251133qad.3.2014.12.06.04.56.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Dec 2014 04:56:20 -0800 (PST) Received: by mail-qg0-f47.google.com with SMTP id z60so1676997qgd.20 for ; Sat, 06 Dec 2014 04:56:20 -0800 (PST) Date: Sat, 6 Dec 2014 07:56:17 -0500 From: Tejun Heo Subject: Re: [PATCH -v2 1/5] oom: add helpers for setting and clearing TIF_MEMDIE Message-ID: <20141206125617.GB18711@htj.dyndns.org> References: <20141110163055.GC18373@dhcp22.suse.cz> <1417797707-31699-1-git-send-email-mhocko@suse.cz> <1417797707-31699-2-git-send-email-mhocko@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1417797707-31699-2-git-send-email-mhocko@suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: linux-mm@kvack.org, Andrew Morton , "\\\"Rafael J. Wysocki\\\"" , David Rientjes , Johannes Weiner , Oleg Nesterov , Cong Wang , LKML , linux-pm@vger.kernel.org On Fri, Dec 05, 2014 at 05:41:43PM +0100, Michal Hocko wrote: > +/** > + * Marks the given taks as OOM victim. /** * $FUNCTION_NAME - $DESCRIPTION > + * @tsk: task to mark > + */ > +void mark_tsk_oom_victim(struct task_struct *tsk) > +{ > + set_tsk_thread_flag(tsk, TIF_MEMDIE); > +} > + > +/** > + * Unmarks the current task as OOM victim. Ditto. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org