Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4314003pxj; Tue, 25 May 2021 05:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVvhFifdR9r1Re1V9Xqcut/cv1os+34LwN9TxUwHN/lZVVvBlUsckEHl9NIDkPZ59eg0ce X-Received: by 2002:a17:906:f2ca:: with SMTP id gz10mr29289234ejb.317.1621945343709; Tue, 25 May 2021 05:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621945343; cv=none; d=google.com; s=arc-20160816; b=VdRW3+4xhiJUhVAijBoc8tV+LjGIG/e0U2GyhhKi1smF0e8nH83lEmqozQSM0YyiLI 1Y1hJMkhcHfaDbjyuaU8jTCJvmK0hUqFbvakDY5Vqx82+ucoCnQXBhDur2xpUcLb/gk3 dOwfE6kxCXJiWyGFrEE6s6f2nJfShaIGGll8rbJ8vdB9TR5qiKj+3DDxiD7EqaJx/+ky eEPvyL+9Uof4QILeRbyctc0DbkGGk+G16m2wZ4zxERV08DE9ItIGrbB/LWMA1a+yn8Wf sTinIoaz/LeuOYFTh582pWcmzb6IjZk81pUjr203S0vGv1R892IOL2CDmldb5jVKei8O +s/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=9DTDezOL2tGEV77LfUzG4wiw6734+Lst6c48Zsg+kmQ=; b=nbG9iT3PrqwonIT7PxrL6M7L1t9TaR+rYhbMQwWFcPQCVf8zgg9Y0mfXK1Vkz1+cE/ XNrYKRdC2D1qBfKxI8o3LY+8YgD0AhH9FuilDwWfxmD0X2rUSNUr6qx2D7TgQ8JlsUSx LdIWqfi0GLwL9nOFwwORlO7AzNVHtRKYEck2kfslzQxyYIwoMJXN8sLeJw7CdRV+V6x8 Bw5aFeCJyAIXUCQNoxZMeBzB+7X5KMWXZ+odI+EqEah4BXpGrMptaIm7i/yvdD+5McQI b8KUzj57e9fuHkfm8g5HA1P98oQHzvjHHeNcaFgxzCETlhn3ZWAx9VEajQlFdHCcGqkJ wNiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xQebaIa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si15751221eje.230.2021.05.25.05.22.00; Tue, 25 May 2021 05:22:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xQebaIa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232268AbhEYMWH (ORCPT + 99 others); Tue, 25 May 2021 08:22:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:35618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbhEYMWG (ORCPT ); Tue, 25 May 2021 08:22:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E1B961402; Tue, 25 May 2021 12:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621945236; bh=gx/t188gAFSgxajdVpgfU2Zhnp3NC44G/heSPvIIs0g=; h=Date:From:To:Subject:References:In-Reply-To:From; b=xQebaIa64ceeyLM/zbw5vJBk+/4PpCs7Nqaru386n6n41x0QyRoiQvZjTQ+yPAL3k ijqDLg5PgZDqS5IgktghngoZd+aFubpAzMuNeKsR20HtwWLjqlahhTs1Kxjx2v/eIr femh9gPwkrl6bjeRh6FZvsbfH7KnXOfXjHEQHj7Q= Date: Tue, 25 May 2021 14:20:34 +0200 From: Greg Kroah-Hartman To: dsterba@suse.cz, linux-kernel@vger.kernel.org, stable@vger.kernel.org, David Sterba , Johannes Thumshirn Subject: Re: [PATCH 5.12 038/127] btrfs: zoned: fix parallel compressed writes Message-ID: References: <20210524152334.857620285@linuxfoundation.org> <20210524152336.139215075@linuxfoundation.org> <20210525120054.GU7604@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210525120054.GU7604@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 25, 2021 at 02:00:54PM +0200, David Sterba wrote: > On Mon, May 24, 2021 at 05:25:55PM +0200, Greg Kroah-Hartman wrote: > > From: Johannes Thumshirn > > > > commit 764c7c9a464b68f7c6a5a9ec0b923176a05e8e8f upstream. > > > > When multiple processes write data to the same block group on a > > compressed zoned filesystem, the underlying device could report I/O > > errors and data corruption is possible. > > > > This happens because on a zoned file system, compressed data writes > > where sent to the device via a REQ_OP_WRITE instead of a > > REQ_OP_ZONE_APPEND operation. But with REQ_OP_WRITE and parallel > > submission it cannot be guaranteed that the data is always submitted > > aligned to the underlying zone's write pointer. > > > > The change to using REQ_OP_ZONE_APPEND instead of REQ_OP_WRITE on a > > zoned filesystem is non intrusive on a regular file system or when > > submitting to a conventional zone on a zoned filesystem, as it is > > guarded by btrfs_use_zone_append. > > > > Reported-by: David Sterba > > Fixes: 9d294a685fbc ("btrfs: zoned: enable to mount ZONED incompat flag") > > CC: stable@vger.kernel.org # 5.12.x: e380adfc213a13: btrfs: zoned: pass start block to btrfs_use_zone_append > > CC: stable@vger.kernel.org # 5.12.x > > Signed-off-by: Johannes Thumshirn > > Signed-off-by: David Sterba > > Signed-off-by: Greg Kroah-Hartman > > We found a bug in this patch, please drop it from 5.12 queue. This one, and the previous one, now dropped. thanks, greg k-h