From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.3 required=3.0 tests=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 02951C3F2D2 for ; Thu, 5 Mar 2020 16:39:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCE6120637 for ; Thu, 5 Mar 2020 16:39:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726048AbgCEQjQ (ORCPT ); Thu, 5 Mar 2020 11:39:16 -0500 Received: from mx2.suse.de ([195.135.220.15]:57466 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgCEQjP (ORCPT ); Thu, 5 Mar 2020 11:39:15 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 34B22B2B7; Thu, 5 Mar 2020 16:39:14 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 01302DA733; Thu, 5 Mar 2020 17:38:50 +0100 (CET) Date: Thu, 5 Mar 2020 17:38:50 +0100 From: David Sterba To: Filipe Manana Cc: dsterba@suse.cz, Josef Bacik , linux-btrfs , Filipe Manana Subject: Re: [PATCH v3 3/3] Btrfs: implement full reflink support for inline extents Message-ID: <20200305163850.GE2902@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Filipe Manana , Josef Bacik , linux-btrfs , Filipe Manana References: <20200224171327.3655282-1-fdmanana@kernel.org> <5e044000-09e8-ade1-69a6-44cfc59fdc48@toxicpanda.com> <20200305141959.GC2902@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Mar 05, 2020 at 03:03:14PM +0000, Filipe Manana wrote: > On Thu, Mar 5, 2020 at 2:20 PM David Sterba wrote: > > > > On Thu, Mar 05, 2020 at 11:57:52AM +0000, Filipe Manana wrote: > > > So this actually isn't safe. > > > > > > It can bring back the race that leads to file extent items with > > > overlapping ranges. Not because of the hole detection part but because > > > of the part where we copy extent items from the fs/subvolume tree into > > > the log tree using btrfs_search_forward(), as we copy all extent > > > items, including the ones outside the fsync range - so we could race > > > in the same way as we did during hole detection with ordered extent > > > completion for ordered extents outside the range. > > > > > > I'll have to rework this a bit. > > > > Ok, I'll remove the branch from for-next. Thanks. > > Wrong thread, the comment was meant for: > https://patchwork.kernel.org/patch/11419793/ Saw it just now and taht was a bit wtf if my mail did not make it through. So, reflink stays in for-next.