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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16DBFC433F5 for ; Fri, 15 Apr 2022 06:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350437AbiDOGar (ORCPT ); Fri, 15 Apr 2022 02:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236018AbiDOGaq (ORCPT ); Fri, 15 Apr 2022 02:30:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFF66A1459; Thu, 14 Apr 2022 23:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tTulKxlD0lA9qywlBH9VasRCj28V8Ec2TAqTh6v1Jso=; b=EXrPd0v9wBTLQFs0a+ktyKD7k8 IPqgWPomQLt/XLkXkWJXoAyHSpc/ndI4Jf5USuKEDUFEj5wB7zfGXwE3EXFoUdK0OjgDhVNfEVdSu b9gd7Mw9paUmM4+JP3ddNcFNRDRu4UtXobD9C1PCmLCqYY++BagpKhr/5B+Dl6WhR9xrgcnkWyVuV czmfE06hvXacEaUkLN6ftMWzK7Kd0NgFJzshLx0HD90rsQX8KmJ8pn/g1Z4KLC5x5e871yCkROL81 LAge7keZWS7CYRDPkCy+xxEm0HzbZiTKkLniJBAXLHx+S389/6CeTx5b5U9HSGlmmKz53CK1pyhCo McahsKrQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfFRJ-008zVp-MV; Fri, 15 Apr 2022 06:28:17 +0000 Date: Thu, 14 Apr 2022 23:28:17 -0700 From: Christoph Hellwig To: Qu Wenruo Cc: linux-btrfs@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 1/3] btrfs: avoid double clean up when submit_one_bio() failed Message-ID: References: <0b13dccbc4d6e066530587d6c00c54b10c3d00d7.1649766550.git.wqu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0b13dccbc4d6e066530587d6c00c54b10c3d00d7.1649766550.git.wqu@suse.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Btw, btrfs_submit_compressed_write also seems to do some double cleanups, even if the pattern is slightly different as the bio is allocated inside btrfs_submit_compressed_write itself. Can someone who is more familiar with that code look into that?