Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1838309pxb; Sun, 18 Apr 2021 08:34:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc1YxVrkYa5skL7jWmN8xw+5S2877ApKnqPVozQtGvzFgY9lVPi6DuUaIrl+nTOQp6d1Gm X-Received: by 2002:a05:6402:2810:: with SMTP id h16mr6248750ede.107.1618760095753; Sun, 18 Apr 2021 08:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618760095; cv=none; d=google.com; s=arc-20160816; b=w8X0RDu3ABZQSVFUb7zi/3O+Qms38SwaimMJneUVwdq1ZBMzikxsBA/ltdnjlkxr0t px5ibgca+FACaHS5MT7LegXC/UHiioG18tZupt2SS1XeA7I4D7XR4AtpoG+D80VK+t4x XkDNJBAuCnZ3vhWSZvjJVSc1EDne0zLjiPvRBD9QGcka6DVC1G1OLwhhkwqUmyJpLt2a 347ObYuV9hcA0sNLiUUx8f58C7sJNO9F/FA9SktasgrilK9b95dO38DaexGIaw43AEog NOo8uLd8A6LgOmGBAH4UczQzcRIEPweiy9jRtF06qdGGtQtQ3WtUPdMe5weIEHKIwWYo 9Q5A== 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=wCoaBkNa3VJWit/u5WP0EddXypbcFUqAfWjortYHCcM=; b=peK6i1avd3BIn8LVNfo/j9sM26Xbarot3fTseWjRQBuwwDWacEsAuTJ912c9e3Nenn 5pvQMm9o0SdwirgwmtBfC7J2MtF6vjKCS8YIdmArXmt3lRMJjTIh9K25pMVkyPJki/le U0VjZax4QkAnb0PcBsnBFYYZ7+GwJZLsKVWEZojJ4xFP/o7hogQhASw5T4gJ8rOHa29H Pqw0Dqq9vQey/KksQUqRIcUfq/oLQazDmqkcZu+vRdLgiDVN+RapcWK+IzF0Lk4uw7JD fUKdeZHE91So2r8QJe8gLwaDZgJSlCZ0x9rbLbofxZKXkOAkCpb6Mi4TI+7/6hSKv8mH 6erA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y1Uj7r+x; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si10641960edd.315.2021.04.18.08.34.03; Sun, 18 Apr 2021 08:34:55 -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=@google.com header.s=20161025 header.b=Y1Uj7r+x; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbhDRPcS (ORCPT + 99 others); Sun, 18 Apr 2021 11:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbhDRPcQ (ORCPT ); Sun, 18 Apr 2021 11:32:16 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 601F6C061761 for ; Sun, 18 Apr 2021 08:31:48 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id q123-20020a1c43810000b029012c7d852459so7014689wma.0 for ; Sun, 18 Apr 2021 08:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wCoaBkNa3VJWit/u5WP0EddXypbcFUqAfWjortYHCcM=; b=Y1Uj7r+xHMqa41sYVOuKKU5nYCStTz9MBwULDS3Ah6rg4j1l8jyLV2oIaoCfJkAix+ I6no53l/Zo6OZPeE4eNR4ROV4wYCENUrOtqHgkoHdfvXl7PfoPCssSSfcZq41nbmPaMH FHCosovF4CR0dg/JPuIkDPXBNr7k1rV3XktBzdTRhBFZkmKD9TprJIdxq5RBC+/FPCwy EakXt1fMSMZWWwWi6auAB0P0zHTZtdjxG+U/5R4wVvMn3qBvsDRjUjAaE6hhZlvkD1tK msCA+xl8kcrJzdPEcRAUrsArtd9oNPvoSw44y6zM9yVrpDnEA6oRcKtg/W2sJBMwKvbh PLMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wCoaBkNa3VJWit/u5WP0EddXypbcFUqAfWjortYHCcM=; b=p0VGIaGckjPTeOTpY+Cdo4iYxHNWEr/6OtOZBCuuFK4/Xloi7NzA8EywYCLPjGUXxZ l3/YdcLCIYck2uz4bZCcBLebMHL9EhHyPBTQU5IKKkZabvl1xIBEeOT5OjcClLfvOjoW PatLzCbwwBfuzb+pIib0799CZGoffdccaTOaAfZbgfrjkgzWqcgHbWDBJgDu7wuUdwWg XW76kP4/bW56n9jHXYhSrv64WVJvQ0oVDa483uAZO7d9UPAcosXMQlfR1dUyDD8cA9UJ tf35nwScSY22ec6Y51MiO/eDnBH2FEioL8pXxrU+h7qks6Veu67ihz4znF6p3Y4mLhvh 9K6Q== X-Gm-Message-State: AOAM533evHYzYA0Ibdc8Dywfmn9eIkZ8me+cPU5iIQySWGlnLcC3xNHt bWkIqsLpbi4FPBKhLDcSNj9z X-Received: by 2002:a7b:c8ce:: with SMTP id f14mr17053522wml.113.1618759906604; Sun, 18 Apr 2021 08:31:46 -0700 (PDT) Received: from google.com ([2a00:79e0:d:209:b40b:f0d6:b292:d186]) by smtp.gmail.com with ESMTPSA id p18sm18578718wrs.68.2021.04.18.08.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 08:31:46 -0700 (PDT) Date: Sun, 18 Apr 2021 16:31:42 +0100 From: Wedson Almeida Filho To: Matthew Wilcox Cc: ojeda@kernel.org, Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/13] [RFC] Rust support Message-ID: References: <20210414184604.23473-1-ojeda@kernel.org> <20210414200953.GX2531743@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210414200953.GX2531743@casper.infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 09:09:53PM +0100, Matthew Wilcox wrote: > By the way, I don't think that Rust necessarily has to conform to the > current way that Linux works. If this prompted us to track the current > context (inside spinlock, handling interrupt, performing writeback, etc) > and do away with (some) GFP flags, that's not the end of the world. > We're already moving in that direction to a certain extent with the > scoped memory allocation APIs to replace GFP_NOFS / GFP_NOIO. I hadn't myself considered this option but it looks enticing to me. Do you have a sense of which GFP flags we wouldn't be able to obviate even if we did track state?