From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753758AbbGOWVu (ORCPT ); Wed, 15 Jul 2015 18:21:50 -0400 Received: from mail-ig0-f181.google.com ([209.85.213.181]:34671 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbbGOWVs (ORCPT ); Wed, 15 Jul 2015 18:21:48 -0400 Date: Wed, 15 Jul 2015 15:21:46 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Andrew Morton , Jakob Unterwurzacher , linux-mm@kvack.org, LKML Subject: Re: [PATCH 2/4] oom: Do not invoke oom notifiers on sysrq+f In-Reply-To: <20150715094240.GF5101@dhcp22.suse.cz> Message-ID: References: <1436360661-31928-1-git-send-email-mhocko@suse.com> <1436360661-31928-3-git-send-email-mhocko@suse.com> <20150709085505.GB13872@dhcp22.suse.cz> <20150710074032.GA7343@dhcp22.suse.cz> <20150715094240.GF5101@dhcp22.suse.cz> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jul 2015, Michal Hocko wrote: > > > Shrinkers are there to reclaim and prevent from OOM. This API is a gray > > > zone. It looks generic method for the notification yet it allows to > > > prevent from oom killer. I can imagine somebody might abuse this > > > interface to implement OOM killer policies. > > > > > > Anyway, I think it would be preferable to kill it altogether rather than > > > play with its placing. It will always be a questionable API. > > > > > > > Agreed. > > In such a case it would be still good to fix the bug fixed by this > patch. > It's fixed if you follow the suggestion of moving the oom notification out of the oom killer where it doesn't belong.