Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp285574lqp; Wed, 12 Jun 2024 01:10:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU934Z1a220trRGDK3Fs34+ZV5X1jcv8z3aCBWN4qQdu4Y7vi7WT76mSSck6JsBvpaki+pXx0WMxxVrD2fadsAN6yutAaGajOhk7VudZQ== X-Google-Smtp-Source: AGHT+IFwWbdifxRcYL+2N9EI9LvvsROERDxxm5R14bpj6CoS1vxvaJmNiWfTHIiPQIA/pqbFBHBd X-Received: by 2002:a05:6214:3109:b0:6b0:8752:1f84 with SMTP id 6a1803df08f44-6b191a652bemr10105706d6.27.1718179837914; Wed, 12 Jun 2024 01:10:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718179837; cv=pass; d=google.com; s=arc-20160816; b=KyWQCa5y1lb4kQAFf1sg9WA0n1TyAAmRKhvYtC/x/ZTBzTifrorA2Nv3Pa9RhEnrpN 8NoCMQX82pSbx9wyfo2vG1QJ2jcaoquWvgtd94WmkFQ5tfD8ttPeQiJoqrB/ahvpqtmi oEu7CKvgKKgE2x7M3IOEjFbMcd/pL3wj5AUBkYBPJMVpHSK/CzNCMdf08unJ5qCYcH24 KH7DjfmYN62g382Lm24STAr5Ke32PPzkgMHDI8WEHAjSeJVaXIINCnLorIhwElLJdWzd K7XHP7Oi568pFD+eqduExVxwi3Ac0z1UPs/Avqf8Kdh9EvDGNNjjKGU9fbkyrmEQh+40 qlcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=74ARrTB2uqbX3nHwYJDMtYSDp0spRGdqOYKv8TI/qKg=; fh=h5bmt79s/MZqhBxpn9dFiu0HGs8+dm8skCuMM277Y7I=; b=zA7zdwlCdPWO5y8e+CS5no4I2AjekIA5WENJmkEl3FZgLZlZ81gwlrYWzAh0EyNLGf NCJ5/PRfK2KkN+JelucZzA9tVvDv6XjlgnI2kGm6BMaZwOayL1RccTYz0fPXNaQnVfDy OiXQvgIDT9yeW2P8ygRU488wU5ysKtvEHVzreDhbr2aCF9a4iqENNMDgZEW8wZhVnbJM a5/NYyGIPYvf9axBT9OVjqXBWVamXHRI0tj+YXttSgwF/+Zh4CzTpW+HM+CEpmKHYXk1 ybYajRXyUUjuRDx/PBnDGbEwhjGoTVWu6xU78fsngf+Nk5ifJ9WZ04vuUw3pFYkyxhCy iRkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RzkkBTBA; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b07990a1d2si76109356d6.177.2024.06.12.01.10.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 01:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RzkkBTBA; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-211148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9327B1C20999 for ; Wed, 12 Jun 2024 08:10:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E35F316C869; Wed, 12 Jun 2024 08:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RzkkBTBA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13BDD4C63; Wed, 12 Jun 2024 08:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179795; cv=none; b=bm8FfxnjmZyBPovB7Lo7xCLpkPM20AhWtRaX3yiYG3EqMYoDHiyJ2mY5ZHeXOlScOW7dRd9nNrq0JgoRo3LV9iWRih+4qypTLWSObxhQzgp5Ukom9+tB/vd6V8I3i42fqbY0BmhWhabXsFYP3Ioj6xpM6MEMgwf6oFfxG9qHYP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718179795; c=relaxed/simple; bh=LH2QVR8RIElSNdKCwQD7JEh8pcjMKW0aQHLDo1mJV/I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y3dB9DHnvgFXyW9j8BC0CkltpkyeA8JQXl6Yppig4zrqhdVvNBTV6w+bxedafNcr1W+uAv1Ua2z1fc2mQi00wCvZb8ddaT5GOFsfTbawmKSq7ZsrQdRW/lmPt/Sd3QZdDn6JHc2RjiEXE1VnUj8kulZF6HHkNPAamAL/fCZCGq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RzkkBTBA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1B6C3277B; Wed, 12 Jun 2024 08:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718179794; bh=LH2QVR8RIElSNdKCwQD7JEh8pcjMKW0aQHLDo1mJV/I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RzkkBTBA235rwtWwycIQj2KqVbizGP8wNzoEnhUb4cLSNRP9uK7hGXKcoL0q4iykq t9N0SiPmsqQsiLntlpTpWYkxZQU3y8l3mrAjBndh7BKHKocqhTEJ/OfeDFP15pqTQ/ bvSdTeTNmYUQIldzhRBCA7igwF4H6CcWlAaqxHTw= Date: Wed, 12 Jun 2024 10:09:51 +0200 From: Greg Kroah-Hartman To: Martin Oliveira Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jason Gunthorpe , Leon Romanovsky , Tejun Heo , Andrew Morton , Logan Gunthorpe , Mike Marciniszyn , Shiraz Saleem , Michael Guralnik , Artemy Kovalyov Subject: Re: [PATCH v2 1/4] kernfs: remove page_mkwrite() from vm_operations_struct Message-ID: <2024061242-puzzling-implicit-e64e@gregkh> References: <20240611182732.360317-1-martin.oliveira@eideticom.com> <20240611182732.360317-2-martin.oliveira@eideticom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611182732.360317-2-martin.oliveira@eideticom.com> On Tue, Jun 11, 2024 at 12:27:29PM -0600, Martin Oliveira wrote: > The .page_mkwrite operator of kernfs just calls file_update_time(). > This is the same behaviour that the fault code does if .page_mkwrite is > not set. > > Furthermore, having the page_mkwrite() operator causes > writable_file_mapping_allowed() to fail due to > vma_needs_dirty_tracking() on the gup flow, which is a pre-requisite for > enabling P2PDMA over RDMA. > > There are no users of .page_mkwrite and no known valid use cases, so > just remove the .page_mkwrite from kernfs_ops and return -EINVAL if an > mmap() implementation sets .page_mkwrite. > > Co-developed-by: Logan Gunthorpe > Signed-off-by: Logan Gunthorpe > Signed-off-by: Martin Oliveira > --- > fs/kernfs/file.c | 26 +++----------------------- > 1 file changed, 3 insertions(+), 23 deletions(-) Acked-by: Greg Kroah-Hartman