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,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 62E45C3F2CD for ; Thu, 5 Mar 2020 14:20:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4649720732 for ; Thu, 5 Mar 2020 14:20:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbgCEOUY (ORCPT ); Thu, 5 Mar 2020 09:20:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:52980 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbgCEOUY (ORCPT ); Thu, 5 Mar 2020 09:20:24 -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 94657B33F; Thu, 5 Mar 2020 14:20:22 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 91B65DA703; Thu, 5 Mar 2020 15:19:59 +0100 (CET) Date: Thu, 5 Mar 2020 15:19:59 +0100 From: David Sterba To: Filipe Manana Cc: Josef Bacik , linux-btrfs , Filipe Manana Subject: Re: [PATCH v3 3/3] Btrfs: implement full reflink support for inline extents Message-ID: <20200305141959.GC2902@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> 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 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.