Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19575984ybl; Sat, 4 Jan 2020 04:34:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwK2NlgoC9gKFDlEGG/dFfw/YQhJg9/4nRVRdu7dtYbT+8cFapl3VpnMG+5Eqvth14YSn5T X-Received: by 2002:a9d:7501:: with SMTP id r1mr102841964otk.196.1578141245085; Sat, 04 Jan 2020 04:34:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578141245; cv=none; d=google.com; s=arc-20160816; b=hVZwnI+wyh2D4j5wUoJqE1khxLtr5izP7P/rqvm4tTbA83fBSPxCCHrsthUIy6mcQ4 cjYosSFkqBZqlhkxyejjpyYLbrJTt8e+8ooF5qZqHvfnN2Mr+QsaujJIHPIGVMaCf88k XjlZgFoCQAkv4lqNmXJFEkHbLqX40VlZJeu2WlpsGqXhgYHPLzPOQxp0wp5LiwGqTkcL 3iZ6nquJgeZOOygRy+U1Uejm/ivgT6sqv+mt8k5JXFmembCtaOmC4O7P9BO4PzIFtUnB 4uryZlYGyzkaQ1UB53hBUIEfcd2mA14zog9bYykO5W5apGXk/1XJ0VN1YD9SrThUI73X NBzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=WSvqo1sN33GzP5wIPgYV8TZNBgpjwNhN5VK+gDv7vRQ=; b=XKaaN/pTmrlzkWR8aZW+3JFk9hlG0txEv5uAku/vkNoVgcvxa/RrrBJQaCCT+FLTeE 7iSxwsA+hM2DX/XjwE8PkuxcYsMxKSrC8Sw7OEaFvXVjPt2vwLKn71hCfGy5YT5v6Li7 PRiAKtqCJnRAfMKwxuEOZ+1Z1jDHaF/7l1PCQrSIfGUQZ/wSVZnmobS0YXwD9sBdHj/k /vu/5YnKS/ZGlRNbnVdQTiq5ks+MpSgtbmnXJYI4Pyyhy4xmaf5qdkVM4a9ry7AsBEjl 4q/Z4Jp3GFUpMo8SQJoZZpgNLu9KGM1GskmMLTTKX02/BTKr0XEe1jSbF1smwXDhyz/R mKGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FP7fvQXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si33348582otl.243.2020.01.04.04.33.53; Sat, 04 Jan 2020 04:34:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FP7fvQXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbgADMcM (ORCPT + 99 others); Sat, 4 Jan 2020 07:32:12 -0500 Received: from mail-vk1-f194.google.com ([209.85.221.194]:33349 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgADMcM (ORCPT ); Sat, 4 Jan 2020 07:32:12 -0500 Received: by mail-vk1-f194.google.com with SMTP id i78so11380030vke.0; Sat, 04 Jan 2020 04:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=WSvqo1sN33GzP5wIPgYV8TZNBgpjwNhN5VK+gDv7vRQ=; b=FP7fvQXKmJboWbt4mL1mAewD1Dskgq4gSHkoVAcsDB7ecwwYNuHtCIUHQBjwBxtICF aeEKbJZdTrYVZLoTHsXbKyBzKg1/rtojVJIIFBIxnPaq6Rp4cX0Qod3fB8Wt54fl4ity AGa2lh2x60B5sHz0XGLVc9MWuHWfnPe//+MNQ976e8mU3KVB2h3K8g8zCxX0fLPUOP2O QG3T3z9kTTqsE00U2MAFHaoPlqmIMcLJtC6MlaiE/BlJbFKDhJA6BW5U4LmO71N44Rr3 yGSqyAx1v2NoEZCcHtrUh/8Y0be2qX7gjDY+m7Z0f0vmKV09DLzQYEF+BbT5bnFlDEZf Fv8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=WSvqo1sN33GzP5wIPgYV8TZNBgpjwNhN5VK+gDv7vRQ=; b=lJcWhRZWUar1BJxfwxWvDiQ1pdPDcf+2Wt9Otlr3JCeAxVpXusu29e9uwlyOyv6iYS X/HBDiRnxPS0dXY7gDYsSIb4MNlcSdxOhYvx+Jy3T1NGICiagCZv5yYvh4h3BdyR/vp+ 08L7NeBX+CASgNPdBtCKs259r3cnhYzZaPuIWJVjiFUQh6IQ1QB0GN0To0IX8RIoKu04 J3kjeL2czFNMJxMvt9G6Hgv3Ib4dLtgHEoRjLA9quYfNImqw3wgSE8oGfl3U1runRic8 u/Hd+4yvJSDuqGvKDEnRViXbMwMpOeT1wBl0X6V89VkqubT/6JA0hjN0wtKq6CunTgDL yLnQ== X-Gm-Message-State: APjAAAVD4AumXvaqLagWqOf/20N1q/JqfVoiSGqJc85OUs0BtNIGWfqG 2afDICK5GZCzfVZjHcajCzOdcD3nAoZUBcvvucmzgVe5 X-Received: by 2002:a1f:8d57:: with SMTP id p84mr48556824vkd.65.1578141130870; Sat, 04 Jan 2020 04:32:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: fdmanana@gmail.com From: Filipe Manana Date: Sat, 4 Jan 2020 12:32:00 +0000 Message-ID: Subject: Re: [GIT PULL] Btrfs fixes for 5.5-rc5 To: David Sterba Cc: Linus Torvalds , linux-btrfs , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 3, 2020 at 5:44 PM David Sterba wrote: > > Hi, > > a few fixes for btrfs: > > * blkcg accounting problem with compression that could stall writes > > * setting up blkcg bio for compression crashes due to NULL bdev pointer > > * fix possible infinite loop in writeback for nocow files (here possible > means almost impossible, 13 things that need to happen to trigger it) Some corrections regarding this last bullet point. The issue is not about nocow files. It's about writes into preallocated extents (allocated through plain fallocate() or fallocate's zero range), which triggers nocow writeback. Secondly, the "13 things that need to happen to trigger it" is confusing. The changelog has 13 bullet points that describe the race that triggers the problem, they are not steps that need to happen. The conditions necessary to trigger it are far less than 13. The first paragraph of the changelog summarizes when the problem can happen= : "When starting writeback for a range that covers part of a preallocated extent, due to a race with writeback for another range that also covers another part of the same preallocated extent, we can end up in an infinite loop." And the issue is far from almost impossible or theoretical. Long runs of fsx (1 million operations or more), such as the one from the test case generic/522 from fstests, can trigger it sporadically (I could trigger it a few times per week). Thanks. > > Please pull, thanks. > > ---------------------------------------------------------------- > The following changes since commit fbd542971aa1e9ec33212afe1d9b4f1106cd85= a1: > > btrfs: send: remove WARN_ON for readonly mount (2019-12-13 14:10:46 +01= 00) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.5-r= c4-tag > > for you to fetch changes up to de7999afedff02c6631feab3ea726a0e8f8c3d40: > > Btrfs: fix infinite loop during nocow writeback due to race (2019-12-30= 16:13:20 +0100) > > ---------------------------------------------------------------- > Dennis Zhou (2): > btrfs: punt all bios created in btrfs_submit_compressed_write() > btrfs: fix compressed write bio blkcg attribution > > Filipe Manana (1): > Btrfs: fix infinite loop during nocow writeback due to race > > fs/btrfs/compression.c | 7 ++++++- > fs/btrfs/inode.c | 6 +++--- > 2 files changed, 9 insertions(+), 4 deletions(-) --=20 Filipe David Manana, =E2=80=9CWhether you think you can, or you think you can't =E2=80=94 you're= right.=E2=80=9D