Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5010574pxb; Mon, 15 Feb 2021 07:16:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUzXVt31auGrom/f4s8esmsC7Y67UUIKJPijqsgIVnNeFoYRsUyOf4P2BoSCfFv/zQx6ne X-Received: by 2002:a17:907:210e:: with SMTP id qn14mr16709080ejb.237.1613402187608; Mon, 15 Feb 2021 07:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613402187; cv=none; d=google.com; s=arc-20160816; b=iEDoy3RSaopClzZTPi14JHVjwl3y5tZPqn1F7hjuH08R4nxhr0juFoQActVrUJlwvm yv/DEhPizhI6u/LejlRoQpQp7MUiOhtvnSJvm8d2t+ZOWcxlskdkt6BayA8iuOA60Tzm 7xCR9jd5auldj1HlXn23slZTMRUWXLfD2sxvtmn2sjdmZSbpRPgNF6dmLArXeamMvOHS n8kVUS2xoD+HUaldmb/xpV8GQyTEUzG/aZeQWQ6CHD9JasMHH7yTNFWFBbCb5p9BYpSA nGubCAylqBUnEIIfLgsj2MgWMg+0f50tuyUvwsTsPvC+hTf/iMQcawJY6emH63RYWwqJ XYag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date:dkim-signature; bh=v6KSsVad5fz+13MYpeONrGVE/Pn0gqQPvShBbeX2sbc=; b=DPqgyZN/B00IbA1s6xoWJTPSmSwbPM1i/lYC0ooKE5ZT8pchH4+HqBgztSgG6c3plY yA2REktmgHGbWSlwNqGqwnOWOaqAVzfxZF48Wv2ypTMYsyZppoZMCyF9GqYFdmVzsjv8 uoGcG6F36JC8KLYORKVxJtCG+ASN1Ohu2O50jPmwo3X7EgnxdCdx8xkwg1BqtGf17MJU wb2xtbTZOw0G/unGviGe2QaJ01U+i9cf7inXt6vf2SmojTB3diFDef2F03oaDNTg8tYS pbY2VCCHUSt00sp7qPtwBKE7tvyenQPe65ydImbwRXw7tW3dvb3YEEhEZbqHCNQaaskG G5Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XxwBwQc8; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs10si11215093ejc.200.2021.02.15.07.16.00; Mon, 15 Feb 2021 07:16:27 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=XxwBwQc8; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbhBOPPA (ORCPT + 99 others); Mon, 15 Feb 2021 10:15:00 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:42115 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhBOPFf (ORCPT ); Mon, 15 Feb 2021 10:05:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613401449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=v6KSsVad5fz+13MYpeONrGVE/Pn0gqQPvShBbeX2sbc=; b=XxwBwQc8pJddrVYT0eIsnNXWaVhT3+TWQuq+Y5encdSht6wYxMNpzlD2xuI6hDf/WWWpsr 7v7yt8EOBDDa+CH3cLf9mQowTCg4x3yjMgZLloz+i6nxAf25wTw6Y4VPgShKQlYkMTDMFr oTDsh+D/k1Oct4rFpdcTj+N93eJAFig= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-580-Shh2TTTbOAqew6VmOkYRtw-1; Mon, 15 Feb 2021 10:04:05 -0500 X-MC-Unique: Shh2TTTbOAqew6VmOkYRtw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B770610CE782; Mon, 15 Feb 2021 15:04:02 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1A9F560C0F; Mon, 15 Feb 2021 15:04:00 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id 11FF3xbh008633; Mon, 15 Feb 2021 10:03:59 -0500 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id 11FF3sVY008629; Mon, 15 Feb 2021 10:03:55 -0500 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Mon, 15 Feb 2021 10:03:54 -0500 (EST) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Alexander Viro , Matthew Wilcox , Zhongwei Cai , Mingkai Dong , Dan Williams , Vishal Verma , Dave Jiang cc: Andrew Morton , Jan Kara , Dave Chinner , "Theodore Ts'o" , David Laight , Steven Whitehouse , Eric Sandeen , Wang Jianchao , Rajesh Tadakamadla , linux-kernel , linux-fsdevel , linux-nvdimm Subject: [RFC v3] nvfs: a filesystem for persistent memory Message-ID: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi I announce a new version of NVFS - a filesystem for persistent memory. http://people.redhat.com/~mpatocka/nvfs/ git://leontynka.twibright.com/nvfs.git Changes since the last release: I reworked file read/write handling: * the functions nvfs_read and nvfs_write were deleted beacause it's unlikely that the upstream kernel will allow them. * the functions nvfs_read_iter and nvfs_write_iter have a fast path if there is just one segment in iov_iter - they will call nvfs_read_locked and nvfs_write_locked directly. This improves performance by 3% on the read path and 1% on the write path. * read_iter_locked uses copy_to_iter as suggested by Al Viro. * write_iter_locked doesn't use copy_from_iter_flushcache, because we need copy that doesn't advance the iter (the "copy" and "advance" must be two separate operations). So, I added new operations "iov_iter_map" and "iov_iter_unmap" - iov_iter_map will map the first segment of iov and iov_iter_unmap will unmap it. Do you think that introducing "iov_iter_map" and "iov_iter_unmap" is appropriate? Do you have some other idea how to handle it? Mikukas