Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1469673pxb; Fri, 20 Nov 2020 10:12:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEOv/xuHW8wnhsYqUPEp5wg+irNs/jc4FSe82hz/ZOSBUkoNb4AgUYJjcqSsfBX4UI4wSc X-Received: by 2002:a50:b404:: with SMTP id b4mr6513493edh.369.1605895946031; Fri, 20 Nov 2020 10:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605895946; cv=none; d=google.com; s=arc-20160816; b=JCrcnniPZluuPObPY6wbk25kBULxRkwEkTpfrqpzaKSRUV6kgHUkcSUsYbPeeg5vZz ZJNtbrgU7eMo7qNY6pWE9ay2nddnuNUa6zMFHXgm81D7/O4jNUEmahzx4UJLvI2CJLGn C5AEPpHZNusqvbrhCCaCinNvsE7hvERiDX6F4rRuhhKJqo6dMNY+ZROGD2NV/vwPCSxd IHzfezrTnlaKm2rc/VOeh92RAzB8ZJrOE2CSjYbjqLnt2cyPvG0sQDiOgP3G8GguC8pk zmAlbgtjRnY8j6S2TkIPqJBSkIk1BU6PSeEVtCwlzdHaH3VvZPfB3D8v+pB+q1do1gPI wHKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:pfrom:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date; bh=/+r9S4MeVLqwmUzOpHQqm0EhbzWAKDvPfLSS1uCJlf4=; b=yvhaR2e5S17/DfCARriv5mC3GjvXWvGr+qSrMMZKTDjP9iXX9ecXZwbARHY0WTSKwA jdX1StBvomErTapMwBslUTST0R1KzhqgbNtTT8mpiy+2relxukNJ++FMI3S5+6zTK1nH doUxEtB1GVCDrmeq+EMK6fbsPQzahhcw0mEWUvM3Fp4zYbh/vcoq2ltT/babAxAshk6C AvzBNfm0ew4hfQfZAVVaLhNns8rAnOTj8LT/oCFqCs/3DD+Ho9KMobj+CU2i2WYkZxXt OF1wOl1XzXOCSV50TQ5Le18yAkOt6o6wGy2wwlIYmLGFoCWPhO2H5L1piMtm3jvFlESS B2Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si2095578ejj.520.2020.11.20.10.11.45; Fri, 20 Nov 2020 10:12:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729192AbgKTSKh (ORCPT + 99 others); Fri, 20 Nov 2020 13:10:37 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:53569 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729147AbgKTSKg (ORCPT ); Fri, 20 Nov 2020 13:10:36 -0500 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0AKIAUZf002978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Nov 2020 13:10:31 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id C7E55420107; Fri, 20 Nov 2020 13:10:30 -0500 (EST) Date: Fri, 20 Nov 2020 13:10:30 -0500 To: Mauricio Faria de Oliveira Cc: Jan Kara , linux-ext4@vger.kernel.org Subject: Re: [PATCH] ext4: Fix mmap write protection for data=journal mode Message-ID: <20201120181030.GF609857@mit.edu> References: <20201027132751.29858-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: pFrom: "Theodore Y. Ts'o" From: "Theodore Y. Ts'o" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Mauricio, Thanks for your work in finding the corner cases for data=journal. If you don't mind me asking, however --- what are the use cases for you where data=journal is the preferred mode for ext4? There are a lot of advanced features for data=journal mode which don't work. This includes things like dioread_nolock (now the default), delayed allocation, and other optimizations. It used to be that data=journal pretty nicely fell out of how ext4 worked in "normally". These days, data=journal is becoming more and more an exception case that requires special handling. And to be honest, every so often there has been discussion about whether the maintenance overhead of data=journal has been worth keeping it. So far, we just don't bother making data=journal work with things like delayed allocation, and one of ther reasons why we've kept it around is because it's a unique mode that none of the Linux file systems have. It would be useful, though, to understand what are the use cases where you (or your customers) are finding data=journal useful, so we can better optimize for their use case. And if there are enough people who care about it --- and clearly, you've invested so much effort that you definitely fall into that category :-) --- then maybe there's a business case for investing more into data=journal and trying to make it something which is easier to maintain and can work with things like delayed allocation. Thanks, - Ted