Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1316416pxb; Tue, 26 Oct 2021 06:54:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysG1FV5ZG4rKluNJDAfQ++S9jEUiaw2/Rvs2FKXgjd1ncIBeL3Cq6Xq1UxyJnpEPiKm4JS X-Received: by 2002:a17:90b:245:: with SMTP id fz5mr17516649pjb.226.1635256461076; Tue, 26 Oct 2021 06:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635256461; cv=none; d=google.com; s=arc-20160816; b=UKBDkXCM2rs3aY9HqMHT2tSXWY8lVX7CYZr0wdof6nUplxGSqfMdSGoBd1xebBGz0K Sw+RgsSVJrxXpBGwIA1XwpfKTNgWl50us9+OacyyWzoTS8qt6VLsQS24UngBizVwmSNC v3+d6CIl8ETWYSnbg6+LR9MyFe8EqwwQgelBOJun3tErPhtlpbpvJvSjOlI7H7tW88Dn fN/uL3KHLx9JABPeK+GO8azRwxVrirRbcDLZ2mv6VJaG0FFSYCQHXBj8Ersk2pxR7HdL tcPNa8xfeUKsw9ZjWPqHbyP2fRiCnqtPtY6bI7LTTiHII8X82C4NMIYwmlmzRA8OJbh4 U6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=WDeyQBV9DEd0tXGdD1qku14+9u4jb7PKJUH26QFG8DU=; b=Av7ZKFwFYC31v5V8KEfQ+Yg3WZAz7E+IKY84r3YajKW0BphDGC36oCnMjXFDxCraJb 96zi0gxTuNk4/yVabMgsGTG5M/g7wTzTr+qYPLqU3oPoCN7ToGdkxnegJAAAaL/ccr/y CuB2FzLNIL5fz8cWdv4wPhvIBiMzIypz6aHEMi2XMokEpspZ2SE/TAbGJcxDPxp657bn f2tfQaRSYbYPiKfXJmN5Vzje2gS+PMRa37oYqzkM5vKQIuNcacbx58MfyGgpF8s6DZGl q1eQWGLIEbLnEj3vJSPNmQw8aWKe/4gcFe56Zjcz4coTBwIyWnBvXoLu9pJ7O6kFI3jM f6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cIfY3dnX; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h62si432609pge.174.2021.10.26.06.54.08; Tue, 26 Oct 2021 06:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cIfY3dnX; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234064AbhJZKdY (ORCPT + 99 others); Tue, 26 Oct 2021 06:33:24 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:55794 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233600AbhJZKdX (ORCPT ); Tue, 26 Oct 2021 06:33:23 -0400 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-out1.suse.de (Postfix) with ESMTPS id 7FF9E2195D; Tue, 26 Oct 2021 10:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1635244258; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WDeyQBV9DEd0tXGdD1qku14+9u4jb7PKJUH26QFG8DU=; b=cIfY3dnXPMscVImWyijSTbuMwtr/YCMjZw0IyDyoG4QR3wYLXRq5JGSTJKBTs8ufoBoxcB LN0NXPQWvcRfRQ1hrwSmo6WhIySYM5H9L6KR6pfjBPqiB2u1rWKYJp0WIR/6bqrYqwjuE7 nEmMDPZV2Nu2pRT7xGdDgJv297WGA70= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1635244258; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WDeyQBV9DEd0tXGdD1qku14+9u4jb7PKJUH26QFG8DU=; b=3lUTKYQ6NxuOyMBjALvs/LScH2rgJneMYKzuxLMCCut4B0rZkFlz+yckRlHbfgJ2+hNwzo YJNaMcVClDDJPmDQ== 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 9A6AB13D43; Tue, 26 Oct 2021 10:30:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zbQ2Ft/Yd2GRFgAAMHmgww (envelope-from ); Tue, 26 Oct 2021 10:30:55 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Michal Hocko" Cc: linux-mm@kvack.org, "Dave Chinner" , "Andrew Morton" , "Christoph Hellwig" , "Uladzislau Rezki" , linux-fsdevel@vger.kernel.org, "LKML" , "Ilya Dryomov" , "Jeff Layton" Subject: Re: [PATCH 2/4] mm/vmalloc: add support for __GFP_NOFAIL In-reply-to: References: <20211025150223.13621-1-mhocko@kernel.org>, <20211025150223.13621-3-mhocko@kernel.org>, <163520277623.16092.15759069160856953654@noble.neil.brown.name>, Date: Tue, 26 Oct 2021 21:30:52 +1100 Message-id: <163524425265.8576.7853645770508739439@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Oct 2021, Michal Hocko wrote: > On Tue 26-10-21 09:59:36, Neil Brown wrote: > > On Tue, 26 Oct 2021, Michal Hocko wrote: > [...] > > > @@ -3032,6 +3036,10 @@ void *__vmalloc_node_range(unsigned long size, u= nsigned long align, > > > warn_alloc(gfp_mask, NULL, > > > "vmalloc error: size %lu, vm_struct allocation failed", > > > real_size); > > > + if (gfp_mask & __GFP_NOFAIL) { > > > + schedule_timeout_uninterruptible(1); > > > + goto again; > > > + } > >=20 > > Shouldn't the retry happen *before* the warning? >=20 > I've done it after to catch the "depleted or fragmented" vmalloc space. > This is not related to the memory available and therefore it won't be > handled by the oom killer. The error message shouldn't imply the vmalloc > allocation failure IMHO but I am open to suggestions. The word "failed" does seem to imply what you don't want it to imply... I guess it is reasonable to have this warning, but maybe add " -- retrying" if __GFP_NOFAIL. Thanks, NeilBrown