Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2733800ybl; Thu, 29 Aug 2019 12:06:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGSa2B6JdPw6YKJaSV/tzE61w/N3qp6uXKC7uXVvMPdh+N8+rP1/tU8jDTMmNbHnkU8qaV X-Received: by 2002:a17:90a:23c8:: with SMTP id g66mr11541525pje.123.1567105608562; Thu, 29 Aug 2019 12:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105608; cv=none; d=google.com; s=arc-20160816; b=qN/+K8gu8w7rbSHjAkHa+7tELJHhNqUcp6YonYnDjj+UvSBE5D8a/cikyvdTjnM12f Ep76AA7xJyQpB4C0HCa8f8LYJrGTnbX+EkOMbdJqJE+rTKtja3UYK1xoWRgXmUn5ZQuc YhGX10tPoaU2BoZC9zh6bbtVWzh0n0sh9pLV7ZCfTPTbHZqpE5fG8QvfjhH5iHHP7lOQ QVXJCLomhPq070U/kQDXKFwU53k+ZyzzxFekqLdkBK1zOhlYfSuqwdMr2lLnwKk9txWe G9eaEjXVmtuP09T3GWJBAMltvDGo4SZlkQDKSVGc3wCgfOlg3+4HPf5L3nZ+jsVilOjx 8frg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=F2fZIv3BhZaFez+M9rVUEgAC9+iErdFX2lJCkO7e4+A=; b=tCbKK0/d5zC8bcBH6+/MXvSp5Pd5Y27Oh1U5ANDKNaKX4/qYtdahm4t6PubnZ0+5CE h3YMWzlDbH0XNI7SD/q899erMVWJkMHWuAUkVjYilqmlRjEjgMAtawIUTzVXiGZdmC0R UT2ZNgtlBv9kwZNRH7ZNEFPGBRNI29hJooK1HVXot9EN8vZkSs4bKWTh3v4uoiEUyNSq WMrj2pTpd8k7RhClanKjHXibLramJdNqjKFcT4xBuXazERwqZxo1L+vOaOzpjwD890yH itd25u5T33ypyIJOzlWDrg4toiSHOCLFXtTT/N9bDuH4tx407xVESNu4mXxlr9TcaQOM ICrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=J+1PMVyo; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si2744261pgt.447.2019.08.29.12.06.27; Thu, 29 Aug 2019 12:06:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=J+1PMVyo; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728378AbfH2TG1 (ORCPT + 99 others); Thu, 29 Aug 2019 15:06:27 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44275 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727673AbfH2TG0 (ORCPT ); Thu, 29 Aug 2019 15:06:26 -0400 Received: by mail-pg1-f195.google.com with SMTP id i18so2067859pgl.11 for ; Thu, 29 Aug 2019 12:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=F2fZIv3BhZaFez+M9rVUEgAC9+iErdFX2lJCkO7e4+A=; b=J+1PMVyow3lFikmxRmNCll5uWGzB5OIgy98JZm5x3LWcmG11x/Bdupo6/P4nr7QQnf jqkDpR2rm+3VZMXp3kqzY/1DGNsOTyfY+3kTJfEhM5Jb7f4rqlQJm1qLQIcxjwae8MOx P1tqOA44frz+9kRjGd7e51jKHY57VTixdVCM5rh44UsKG5HhA0qx2sxMuOiXxDCt4xhn 7pMeUTV90X4PmS+RHNd2xUiAw4XfhWTfW/Kes6qFzG/GOYt6V3azxwyrnlEGEY8mGl4k zfYv8ofdRlPlMKsY97q7Kgmwdbohz4yQzee/HVgwqRg7NRvtuZHcbj2aR6gjbkIbApL7 ehnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=F2fZIv3BhZaFez+M9rVUEgAC9+iErdFX2lJCkO7e4+A=; b=jWu9oLasXxq8yiCuZlCM6I2GRUgAbhfPrd767xgwjQTgMUG+w48/PWfO2E/2c/bY7/ Ck7GkLqKwnojdNXOsDDrYITf/gtppbdEPpNYzEGBRLM29mdV8HDkaVDEj6MI/51bE8eH aAqCjB3rlUBZ1YLaMdYglo2OvYNmnRKf/JI7t99okVGmAg+yPlkAag3vAysTahFW83bu 4waecgqIuNxJ9TdcJCtiHApsOVRyxcmU/wvMwewhXBE81sNbyleOeci9wuTJ7B88qgct wOhCkzzqJW65pgrCgxKB1WsQgB+scSshT0lBreAGU8YnOjR7cuzXHV2puNV8Y8kF594h tdRQ== X-Gm-Message-State: APjAAAUSIcBOYcG42ZJ2KDFpioQoNkOatxMMKmMbcbz3Ma9uAU9vRNzV m6Q4MBTyFCbfnOs1R4h+UDUbbw== X-Received: by 2002:aa7:9609:: with SMTP id q9mr12968920pfg.232.1567105586079; Thu, 29 Aug 2019 12:06:26 -0700 (PDT) Received: from cabot-wlan.adilger.int (S0106a84e3fe4b223.cg.shawcable.net. [70.77.216.213]) by smtp.gmail.com with ESMTPSA id a13sm3652812pfn.104.2019.08.29.12.06.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 12:06:24 -0700 (PDT) From: Andreas Dilger Message-Id: <8C1DC2C7-4389-446D-8233-EEDAAD38C398@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_592A6161-C825-4B2C-9BAF-636BE3FA930F"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 0/3] Revert parallel dio reads Date: Thu, 29 Aug 2019 13:06:22 -0600 In-Reply-To: <20190829105858.GA22939@quack2.suse.cz> Cc: Dave Chinner , Joseph Qi , Theodore Ts'o , linux-ext4@vger.kernel.org To: Jan Kara References: <1566871552-60946-1-git-send-email-joseph.qi@linux.alibaba.com> <20190827115118.GY7777@dread.disaster.area> <20190829105858.GA22939@quack2.suse.cz> X-Mailer: Apple Mail (2.3273) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org --Apple-Mail=_592A6161-C825-4B2C-9BAF-636BE3FA930F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Aug 29, 2019, at 4:58 AM, Jan Kara wrote: >=20 > On Tue 27-08-19 21:51:18, Dave Chinner wrote: >> On Tue, Aug 27, 2019 at 10:05:49AM +0800, Joseph Qi wrote: >>> This patch set is trying to revert parallel dio reads feature at = present >>> since it causes significant performance regression in mixed random >>> read/write scenario. >>>=20 >>> Joseph Qi (3): >>> Revert "ext4: remove EXT4_STATE_DIOREAD_LOCK flag" >>> Revert "ext4: fix off-by-one error when writing back pages before = dio >>> read" >>> Revert "ext4: Allow parallel DIO reads" >>>=20 >>> fs/ext4/ext4.h | 17 +++++++++++++++++ >>> fs/ext4/extents.c | 19 ++++++++++++++----- >>> fs/ext4/inode.c | 47 = +++++++++++++++++++++++++++++++---------------- >>> fs/ext4/ioctl.c | 4 ++++ >>> fs/ext4/move_extent.c | 4 ++++ >>> fs/ext4/super.c | 12 +++++++----- >>> 6 files changed, 77 insertions(+), 26 deletions(-) >>=20 >> Before doing this, you might want to have a chat and co-ordinate >> with the folks that are currently trying to port the ext4 direct IO >> code to use the iomap infrastructure: >>=20 >> = https://lore.kernel.org/linux-ext4/20190827095221.GA1568@poseidon.bobrowsk= i.net/T/#t >>=20 >> That is going to need the shared locking on read and will work just >> fine with shared locking on write, too (it's the code that XFS uses >> for direct IO). So it might be best here if you work towards shared >> locking on the write side rather than just revert the shared locking >> on the read side.... >=20 > Yeah, after converting ext4 DIO path to iomap infrastructure, using = shared > inode lock for all aligned non-extending DIO writes will be easy so = I'd > prefer if we didn't have to redo the iomap conversion patches due to = these > reverts. But if the next kernel is LTS and the iomap implementation isn't in the current merge window (very unlikely) then we're stuck with this = performance hit for LTS. It is also unlikely that LTS will take the revert patches = if they have not been landed to master. Cheers, Andreas --Apple-Mail=_592A6161-C825-4B2C-9BAF-636BE3FA930F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAl1oIi4ACgkQcqXauRfM H+AKuRAAkEpkGPQX4FiwgsuMAYtQQuyLKj3fIRw1ziq+G5Q4Y98g9Lv8u4dPTpao PfOu14uAxekYtSx9avzsnhegGAMwCbYH7MT35VZ2yj4Zs59S1vWS67S2FWSRDnIk UThMXGR2BVjADjDuHN6DOyWnZTfr+a7icrFOhYvIjDyDImqmSJp2akdNhwq4MGu2 yniILeZo4GrUnMUpyAh8iqWi9tP1f5/Ix8icr+95WhmcfX4qyqJCgTUBx2DssClz G+AkgAe3rc8e9qRjehVR7vo4gGg9o6tW8IOR9dP0C1OTa9mi0qatSis+4+m+VAIU 1r8CNrXdhFSq4nza4+eahSZnZqE6BAi6yGpPdyvdYt+MzvOId0qoZaBDBCV1g0sW vvajmTqnyKoG/AM2pmMEjOsygWvewwXhQVMUDPDVQ+GTH6T67TB9xTP+wJFqCIUI 3JWKkygEiT927BPf3LZ7aAp8hbFQDinnx26Ki8E+K9Cith/EJUmLhbTUA/w3sbJP qknT2IHxJw/icTgXK7kU1N9pxKNg9xgXU9XeO63ED8PzJmdB50EjTuvfI68r+YVs EJ3fLcylZnkL8JfUB7unTMRoccg8Bhq/L19c0o0kvMk6mHfITbIJlugaVSa0CBms 6KZVUx/n5bcgQLjIRmoq5DmleNCVjUuv8EGoZP/bEag7jDOZdgA= =wBmG -----END PGP SIGNATURE----- --Apple-Mail=_592A6161-C825-4B2C-9BAF-636BE3FA930F--