From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id D2BF36B0253 for ; Wed, 20 Dec 2017 04:25:50 -0500 (EST) Received: by mail-wr0-f200.google.com with SMTP id u60so332573wrb.10 for ; Wed, 20 Dec 2017 01:25:50 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id h50si4397049wrf.158.2017.12.20.01.25.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 20 Dec 2017 01:25:49 -0800 (PST) Date: Wed, 20 Dec 2017 10:25:48 +0100 From: Michal Hocko Subject: Re: [PATCH v2] mm/zsmalloc: simplify shrinker init/destroy Message-ID: <20171220092513.GF4831@dhcp22.suse.cz> References: <20171219102213.GA435@jagdpanzerIV> <1513680552-9798-1-git-send-email-akaraliou.dev@gmail.com> <20171219151341.GC15210@dhcp22.suse.cz> <20171219152536.GA591@tigerII.localdomain> <20171219155815.GC2787@dhcp22.suse.cz> <20171220071500.GA11774@jagdpanzerIV> <04faff62-0944-3c7d-15b0-9dc60054a830@gmail.com> <20171220083403.GC11774@jagdpanzerIV> <20171220090828.GB4831@dhcp22.suse.cz> <20171220091653.GE11774@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171220091653.GE11774@jagdpanzerIV> Sender: owner-linux-mm@kvack.org List-ID: To: Sergey Senozhatsky Cc: A K , Andrew Morton , Sergey Senozhatsky , minchan@kernel.org, ngupta@vflare.org, linux-mm@kvack.org On Wed 20-12-17 18:16:53, Sergey Senozhatsky wrote: > On (12/20/17 10:08), Michal Hocko wrote: > [..] > > > let's keep void zs_register_shrinker() and just suppress the > > > register_shrinker() must_check warning. > > > > I would just hope we simply drop the must_check nonsense. > > agreed. given that unregister_shrinker() does not oops anymore, > enforcing that check does not make that much sense. Well, the registration failure is a failure like any others. Ignoring the failure can have bad influence on the overal system behavior but that is no different from thousands of other functions. must_check is an overreaction here IMHO. -- Michal Hocko SUSE Labs -- 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