Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7EC0C433E9 for ; Mon, 8 Mar 2021 18:08:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AC060652AD for ; Mon, 8 Mar 2021 18:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbhCHSI1 (ORCPT ); Mon, 8 Mar 2021 13:08:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:41836 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhCHSIE (ORCPT ); Mon, 8 Mar 2021 13:08:04 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DFA50AD74; Mon, 8 Mar 2021 18:08:03 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id BFC2EDA81B; Mon, 8 Mar 2021 19:06:05 +0100 (CET) Date: Mon, 8 Mar 2021 19:06:05 +0100 From: David Sterba To: dsterba@suse.cz, fdmanana@kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 0/3] btrfs: fix a couple races between fsync and other code Message-ID: <20210308180605.GF7604@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, fdmanana@kernel.org, linux-btrfs@vger.kernel.org References: <20210304174418.GV7604@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210304174418.GV7604@twin.jikos.cz> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Mar 04, 2021 at 06:44:19PM +0100, David Sterba wrote: > On Tue, Feb 23, 2021 at 12:08:46PM +0000, fdmanana@kernel.org wrote: > > From: Filipe Manana > > > > The first patch fixes a race between fsync and memory mapped writes, which > > can result in corruptions. The second one fixes a different race that in > > practice should be "impossible" to happen, but in case it's triggered > > somehow, results in not logging an inode when it has new extents. The last > > patch just removes some no longer needed code. > > > > The first patch, as mentioned in its changelog, depends on Josef's patchset > > which has the subject: > > > > "Introduce a mmap sem to deal with some mmap issues" > > The patchset is now in for-next so I'll add your fixes on top of that. Moved to misc-next, thanks.