Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp208990lfu; Wed, 30 Mar 2022 21:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxdtuIiZ/5ToF05JAWJKhcWItPyrRvYzJcP+CsDlQD4kG7zHV7ZTMIARmMi9UhtQBaNck/ X-Received: by 2002:a17:903:3005:b0:154:317:3834 with SMTP id o5-20020a170903300500b0015403173834mr3078367pla.156.1648699410015; Wed, 30 Mar 2022 21:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648699410; cv=none; d=google.com; s=arc-20160816; b=B/FzPTWiZ1/M5Dq36GdnAzqmgzBoE+dNbe4OzcYYBki2iGknr6oCGJoL3FbI+EOAFW FWMJBOGdOUHrmEOcYmI2N4Bw49sC8qyRJ6GJv0zML1XdFFsAiqj/2QcKP5ESvGBIJtLi hvDGYYAEcQlbSSsg1SU1qWXVeLmgf/MRint3eZGJD5OyY297ZhRENnq7EEmmz7RUord+ 1UxfTYo+S7CdijFLo/t0lSCXSrRkdkH/3sCronnIPiOTa7t1lnkfAXGZ01fqqz3hxRG7 bUhav6GPTMqX6gVvx6L7sIVhzuNJwR7SzqcvTXxMJD2irYyIwrACfpm+o/rSnPAC6w7q tHLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y+X7q1ZE3PyNwxyuP4aBqfMfnWOO3NvGABxZ8kqlIrk=; b=JXUeqx2+Rj4t6hTygwBudc/dWRzvtXgEMFwafJ9jRw2O7n1IMv6XUdNmFTJWs9UKWu HR6oc4WP5o88HFd03kQdum1luCHDWVpuhgdKq7MjdMXuWWONOM08Vi7AEsQXK70rlBmq vP1/Xif0urKnZ6ox78722P8sqLzgOFk1Jjvnf4O+EAjaE65xeHwSvQsHrmtcHKKvYy/k Iij1B+IRN27lFA5N78xV1iZAYaPVlG8dEH2l9aJ2ecbbAOhHizlH+kqivQW32Rt88DjJ k99HDtv6Nm1R4FKcP189hfaAkhoVdNGz1bQIeR/jLESe3eg6mpSYVip0KCIukXtLHakq Hk4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=I1JuV3XB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id kk14-20020a17090b4a0e00b001c6ab94aa0esi2172086pjb.169.2022.03.30.21.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:03:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=I1JuV3XB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1805317C406; Wed, 30 Mar 2022 20:10:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244467AbiC3IvK (ORCPT + 99 others); Wed, 30 Mar 2022 04:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237381AbiC3IvI (ORCPT ); Wed, 30 Mar 2022 04:51:08 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298F63FBE4 for ; Wed, 30 Mar 2022 01:49:20 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 6674A1F38C; Wed, 30 Mar 2022 08:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648630159; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y+X7q1ZE3PyNwxyuP4aBqfMfnWOO3NvGABxZ8kqlIrk=; b=I1JuV3XBHMvLo1oTr1L2XPs8CnYBt4sWEm6auUlEjPVZfQVCFXk+/Kru9PltJ9ZtG5cwEG l9JCOC+wArnSyi4+/+6i43Fihu5c9d88BUIKZ7apjqqRfnqQ8RF8aeMIJ9nyguyaCcJG7t bK9xtGyHpsN7iIpAO9fNGGsdKA5uKlw= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id EEC7EA3B92; Wed, 30 Mar 2022 08:49:17 +0000 (UTC) Date: Wed, 30 Mar 2022 10:49:15 +0200 From: Michal Hocko To: Jaewon Kim Cc: minchan@kernel.org, ngupta@vflare.org, senozhatsky@chromium.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, s.suk@samsung.com, jaewon31.kim@gmail.com Subject: Re: [PATCH] zram_drv: add __GFP_NOWARN flag on call to zs_malloc Message-ID: References: <20220330052502.26072-1-jaewon31.kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 30-03-22 10:06:18, Michal Hocko wrote: > On Wed 30-03-22 14:25:02, Jaewon Kim wrote: > > The page allocation with GFP_NOIO may fail. And zram can handle this > > allocation failure. We do not need to print log for this. > > GFP_NOIO doesn't have any special meaning wrt to failures. zram > allocates from the memory reclaim context which is a bad design IMHO. Btw. I forgot to mention that GFP_NOIO doesn't have any different meaning than GFP_KERNEL from this (PF_MEMALLOC) allocation context because this request will never perform a reclaim. -- Michal Hocko SUSE Labs