Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1824354pxb; Wed, 20 Oct 2021 12:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmqIk9Rhc8neZBBRO+N8gXeA3JqhnLA+2kSYctAGxRZy6EOclGAjkv/0xiK+8mfavp7X+U X-Received: by 2002:a50:d841:: with SMTP id v1mr1105754edj.221.1634758142984; Wed, 20 Oct 2021 12:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634758142; cv=none; d=google.com; s=arc-20160816; b=kPwp1yFxXD54V+diW6qlbcl+damnlrFz0mWL4+SU1pR8m360SiKAlHFoYXj+7Y74en L90jjeDkpDPH2kPmSqFFXW7NpOuaHciEQ6WJPmrt9VrpO3pw7A6lrkUXUMNxqvK0/6E1 e/Z8bgZOKn+Fti9VrSxKQw2+PP6EH2kfVxVFEr0nAg2mQkx+BkR+/sKU51APCjmd/qi4 YbXwRpqzgV3F/vfmOlHuZ6MDBMGBqfZOMZQhnyotvAGOZEZPs1JvTAOhCktbAgByT+uw hVEaA7s9PORqeUWYY5J+sy/4GjJC2KGd0YKfNt8wZ+OC3c/NkgWkbg09ltwNWaDQ8d6K jNSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=zBVYuwbzU0MrjoGITQu9tBsWZ7nbrws+z0zkrHM73ZE=; b=QAo/d763Ze3V7FOL6e5+zoUVeX3h+6PO3bPtTK9NLxJEOz7jIoSyYtAUmnwG9ZSqr/ rbPM3zKfu7qk9sETY2tfFIsv7VL3QsxbWYqSXJVv0dkdOkUYW4FxRQKeJDo0NzYZNaBu Uy26qUQC5o3BzfN0ANw7R8g593U65ToWfZKMNGj3Z+u0MSN1nt3ojPhJK2I5h9R47seH SgHuEZPFZeBXwG4TpdK/Eo0yHXDtnHBGNsQ5yFA0nLHHGAhcVdSxl3VSWgx4clffjhyq xLbexuV12uS2P3BSHgcT4N++lhQFif6cHhpwyOMO1EnxsJucyYWmFcxrtM4O/Wwtd6dZ rbZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TWJxQV5p; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si5308454edx.401.2021.10.20.12.28.37; Wed, 20 Oct 2021 12:29:02 -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=@gmail.com header.s=20210112 header.b=TWJxQV5p; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbhJTT0w (ORCPT + 99 others); Wed, 20 Oct 2021 15:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbhJTT0v (ORCPT ); Wed, 20 Oct 2021 15:26:51 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB8DC06161C; Wed, 20 Oct 2021 12:24:36 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id u5so567321ljo.8; Wed, 20 Oct 2021 12:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zBVYuwbzU0MrjoGITQu9tBsWZ7nbrws+z0zkrHM73ZE=; b=TWJxQV5pYR5GhzFo4ccC4tOo8Wfgvjfb2t4pbpy2+KtzAiCW5plYXo44STxngIpVBg I2pO3atCIiMB0X5qiITyxrGa8nKQ14zhgMz+2uj3xT07LbOUKUc7L8cdJshp67Jvz2mx E/Q9RzBO4s1JziAjRicKhfSphkeyAPRvn5yTibuokpMIRll6117L6OPPyz0L7nTkEKy1 dMNWl1WBd6z/rMRsj6kpU22KM1oFvILYESgm0xtQMvE3Y/icJopqJJ2dxlN0NNbu9Ios zk6pVsUCYWftFXBIqUFI164dO6N+bA3uZQJ+d3qWROqcMeSNG3R6vk93nHrBGT/ky6IC s2+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zBVYuwbzU0MrjoGITQu9tBsWZ7nbrws+z0zkrHM73ZE=; b=IvF02Peh+V93HZpapsoYQIU/S58RH/eWRqOpeCb90YdZfSfZQxU7ZOz6nIhKGsyR68 zdS1ZG6l50e+J/Cd0Rigmz7LoiAo0M37SmD39cdd5EZbhhSxU5C9pxYuqQ6wcXXoH8H+ 0XC8VP/fRYst+B3SprxOtPOLCJtW9d6C8G6gh6SrjMHNB7oT9sp6EulpoCExPX445O0z NmqRqLOjERFguH/pzH5NmtamErgnoa9qEZVJHj5tkOZTkAVDqLowliF8FwH0bzuE7ch0 HaDuzLKPufDQrPgXzrzp+3j7n1PWH89i/tapVCVDspIGbc9+bx70qVfOPog+PDuehFPR PcjA== X-Gm-Message-State: AOAM533GjhRu4dbLp0lzj2VSRfPJdM6Ng9HMB/88qWTeYu2SuKti2hP7 uEUCzVesPnGyz9tiZda5Vbo= X-Received: by 2002:a2e:8e72:: with SMTP id t18mr952563ljk.189.1634757874664; Wed, 20 Oct 2021 12:24:34 -0700 (PDT) Received: from pc638.lan (h5ef52e3d.seluork.dyn.perspektivbredband.net. [94.245.46.61]) by smtp.gmail.com with ESMTPSA id bp25sm260772lfb.64.2021.10.20.12.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 12:24:33 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Wed, 20 Oct 2021 21:24:30 +0200 To: Michal Hocko Cc: Michal Hocko , Linux Memory Management List , Dave Chinner , Neil Brown , Andrew Morton , Christoph Hellwig , linux-fsdevel@vger.kernel.org, LKML , Ilya Dryomov , Jeff Layton Subject: Re: [RFC 2/3] mm/vmalloc: add support for __GFP_NOFAIL Message-ID: <20211020192430.GA1861@pc638.lan> References: <20211018114712.9802-3-mhocko@kernel.org> <20211019110649.GA1933@pc638.lan> <20211019194658.GA1787@pc638.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 05:00:28PM +0200, Uladzislau Rezki wrote: > > > > On Wed 20-10-21 16:29:14, Uladzislau Rezki wrote: > > > On Wed, Oct 20, 2021 at 4:06 PM Michal Hocko wrote: > > [...] > > > > As I've said I am OK with either of the two. Do you or anybody have any > > > > preference? Without any explicit event to wake up for neither of the two > > > > is more than just an optimistic retry. > > > > > > > From power perspective it is better to have a delay, so i tend to say > > > that delay is better. > > > > I am a terrible random number generator. Can you give me a number > > please? > > > Well, we can start from one jiffy so it is one timer tick: schedule_timeout(1) > A small nit, it is better to replace it by the simple msleep() call: msleep(jiffies_to_msecs(1)); -- Vlad Rezki