Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1777366rda; Tue, 24 Oct 2023 03:03:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDOaVlsbMMXFSih4B5PGCBxMwhbiXpQinJ2FkaIaciKj1Oyj5MeEvK538Szul7sTrSlQKA X-Received: by 2002:a17:902:ead2:b0:1ca:7f91:aa5d with SMTP id p18-20020a170902ead200b001ca7f91aa5dmr10799363pld.16.1698141809015; Tue, 24 Oct 2023 03:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698141808; cv=none; d=google.com; s=arc-20160816; b=0F5z6y9dvmpGF7C/lVNn9byFfGTw6ngc9dRQgDOhsSRIbwjBcSxlkpHd6Fjj9Zjuut jKEHg+cvqmk6MhutgXTyi+mKaydhFw2dBcWuste9QioiSX/kjJ+ywNBel9KfCGOAEfF7 M+V8gbtcZRynh4ZPq5KGWq5OlXlDTwSmRUvtS07M4yg0tWoohhsG5ZHiYGCTYdXrAxs/ 76HcGr3nVGM5P5VbHuFC7ESpb9MfoPCRDJmG4r+2Qk/IlbCmFynbs4eygNjK7bpc+ZCF QzVxj18N/6CuxzlgAgWpCoLiiUa+mB9KwuF+2VoCE8FYIV742J0vvM5Si7qKc2QKzEg7 SdxA== 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 :dkim-signature; bh=Fd1uUtLWVCbrf8y0Y5fzHoEuPomC3eJzUI1A7frlr0k=; fh=CaLZbGtI/PGOLCua6XOaufmZ09z5f80s5DffOTO7kYg=; b=na29UtA3+y7AwILaFQh2J55N8jtWAE5HYBrcbl2fLqZpfy5E/MMYun+aHG2jGtWIQi F3IfAZgeL0yaYh9A8E1zk0nsR4noN3gmNPADckhK0bEBK6DOdJzPtoFc53uSbApC/zbd AAO5EFwM7ZHdDIAoW3LJMYVQJM/REv9PBE17lwk1f8kUibCETKDDpYoEpj+mLicqV22k bIUZfLGh5GeSNb9s2aMR++rnkdvX59OqbBWTdXsX80vOxNg9MlvhXh3eoJ8oVFPukav/ pUvu6xT53OU9JRl6l+0+dm+yPKiqEN5HhgZxDqVJ/M8Gz3NRP8lSTYqrNP3GVXg3vcqd YIyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fTe5JwqZ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=lu8wohMT; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id jo23-20020a170903055700b001c60c109ce7si7755409plb.295.2023.10.24.03.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 03:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fTe5JwqZ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=lu8wohMT; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 712D580CD726; Tue, 24 Oct 2023 03:03:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234131AbjJXKDY (ORCPT + 99 others); Tue, 24 Oct 2023 06:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234364AbjJXKDX (ORCPT ); Tue, 24 Oct 2023 06:03:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1AADC; Tue, 24 Oct 2023 03:03:20 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3BDC61FD71; Tue, 24 Oct 2023 10:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698141799; 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=Fd1uUtLWVCbrf8y0Y5fzHoEuPomC3eJzUI1A7frlr0k=; b=fTe5JwqZApsvVOwBvi/bUvWfqL8S/Y3kpoaBcpJHKymvKS6ByF5Y0kEb/MJ4Z3AmMw+N+U 81AKCJBzLg5vth28OzYeD3CxRLIsHXbeexfVbgTfabGx4/5pSof0w2b8RNrRjCIV9F6Myn JU59VeDBqKpjQKjZt5+OIIqLOV18BPw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698141799; 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=Fd1uUtLWVCbrf8y0Y5fzHoEuPomC3eJzUI1A7frlr0k=; b=lu8wohMTf9sRWi3q/EUd7SnoZluEEDtz4L6+yEoGOwFq5AFryjFZUATjzMpPOBvANypAj6 ueeB8HNfQKUTJ/Cw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2D601134F5; Tue, 24 Oct 2023 10:03:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id bgINC2eWN2UrGQAAMHmgww (envelope-from ); Tue, 24 Oct 2023 10:03:19 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id AD60DA05BC; Tue, 24 Oct 2023 12:03:18 +0200 (CEST) Date: Tue, 24 Oct 2023 12:03:18 +0200 From: Jan Kara To: Hugh Dickins Cc: Andrew Morton , Matthew Wilcox , Hui Zhu , Jan Kara , Theodore Ts'o , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] ext4: add __GFP_NOWARN to GFP_NOWAIT in readahead Message-ID: <20231024100318.muhq5omspyegli4c@quack3> References: <7bc6ad16-9a4d-dd90-202e-47d6cbb5a136@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7bc6ad16-9a4d-dd90-202e-47d6cbb5a136@google.com> Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -6.60 X-Spamd-Result: default: False [-6.60 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_SEVEN(0.00)[9]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 03:03:25 -0700 (PDT) On Mon 23-10-23 23:26:08, Hugh Dickins wrote: > Since mm-hotfixes-stable commit e509ad4d77e6 ("ext4: use bdev_getblk() to > avoid memory reclaim in readahead path") rightly replaced GFP_NOFAIL > allocations by GFP_NOWAIT allocations, I've occasionally been seeing > "page allocation failure: order:0" warnings under load: all with > ext4_sb_breadahead_unmovable() in the stack. I don't think those > warnings are of any interest: suppress them with __GFP_NOWARN. > > Fixes: e509ad4d77e6 ("ext4: use bdev_getblk() to avoid memory reclaim in readahead path") > Signed-off-by: Hugh Dickins Yeah, makes sense. Just the commit you mention isn't upstream yet so I'm not sure whether the commit hash is stable. I guess something for Andrew to figure out. In any case feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index c00ec159dea5..56a08fc5c5d5 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -262,7 +262,7 @@ struct buffer_head *ext4_sb_bread_unmovable(struct super_block *sb, > void ext4_sb_breadahead_unmovable(struct super_block *sb, sector_t block) > { > struct buffer_head *bh = bdev_getblk(sb->s_bdev, block, > - sb->s_blocksize, GFP_NOWAIT); > + sb->s_blocksize, GFP_NOWAIT | __GFP_NOWARN); > > if (likely(bh)) { > if (trylock_buffer(bh)) > -- > 2.35.3 > -- Jan Kara SUSE Labs, CR