From patchwork Fri Mar 1 13:32:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 208855 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp1082900dyb; Fri, 1 Mar 2024 05:40:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXl48WiWItu+9fpNrwICx6cHlDMfFonemw3UCvRPfLMgqHeSArJzhiipLG6Y9cudFuZEoUnrg1UuEHhaV8dEib5leFn9g== X-Google-Smtp-Source: AGHT+IF4/gKnqQxHVy/JmygFi7j0ewaOu0xJ4I9cB3G/hsueqBVMRA1ZnBv2ckk6ozuZhfTu2jZc X-Received: by 2002:a17:906:350c:b0:a43:fac5:8e87 with SMTP id r12-20020a170906350c00b00a43fac58e87mr1167940eja.65.1709300457854; Fri, 01 Mar 2024 05:40:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300457; cv=pass; d=google.com; s=arc-20160816; b=zaByOlDrPE4Bs3JxOa8w7/3Yn52J6ZKB/Nb9Ee++C/hQITt6eN9jP5AUUSfsPQM6iF 6yPDqv6nE7wb9Oi5y5OvW0RtDGTzTa+BygQR51Yh7ySEbf+SfZZYmVjSVOSRpidgGetf jdzKIAaxzuW7sD+T8oLI9RNv3zJbE6ldfCNDvbvFfWRyJwSjgr82xNTQhrRQye7bb3ek 86+1RdtNLCOn0bXDbcRIKD19jFKcHnAzHAFDjjutD12r7jC1H+FfARLJ27hy1i475b8q ElvZ3gtUkyIN2m7PIPfoLtLEHZUvUavmgoZv0m650kF5TzrpcnwCvwEmATshUCFFvMfT E1Hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=Zj+zGP9Sa++I+q72KNtMQR36SXcnafQVnmCmlX6WdUc=; fh=cDc/K9aJi+EtsiQwx133+5SkxNKAJ5rEgWpWvzE9Xic=; b=EPoneHB1q9gASIbDSsC1A60eiTJbKZIa33P1Lv1hUSlJBcpFjBFzSI2Uj/wf8Z3PPj VFgdb/KGQskO76YB4jx/HTr6gJy6k+OBr3VlTo2oCiRVKC09hrOuGO6uJ92DAow9VITy cWkZqbOQci2tA47TXNuyQaHD9SzoD7xy8FRPnPLViaaOjQ7uwviIQFMBGfxf/tccVYRD drvJ3xZPGxIY4cN5YgbdvcJZLUdRAt7vDEcYbDTqQse31gevuFVU3dNtKBu6FUR5LSsX LRSgS9DEOaoWPh8le2r9iuVymrOSyn/szlWntMJ5dH4xn+QpXPi+v/S/wIKQGF72qtal BTMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZTyIUkrH; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZTyIUkrH; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-88498-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88498-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mc5-20020a170906eb4500b00a43c5d522a7si1480798ejb.103.2024.03.01.05.40.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:40:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88498-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZTyIUkrH; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZTyIUkrH; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-88498-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88498-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 79F031F241D7 for ; Fri, 1 Mar 2024 13:40:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49FC16EB75; Fri, 1 Mar 2024 13:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ZTyIUkrH"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ZTyIUkrH" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96D576E5E6; Fri, 1 Mar 2024 13:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709300410; cv=none; b=qKM33Rr0CBwZ2W9bq8hRc23PdN5Oqnhac5ARpO4AHXPG0OKbwteHxZWJoeckBzEl8z1ftTIhZfzuoEdlg5PkcyTQAbmiqSH6AL/Lv1/yuozv9OSnQuf2uNnbQwp+yPWmwP5h1acJ90+HKC4RCLLveA9vvVJaDGWxgKHospOPP5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709300410; c=relaxed/simple; bh=/Hcui98i45tL/akTfhBkadYuzPXQg8gyV3keWHPuFnk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eDRdxut3JVmm2hGGYcF2Tmu3Q7OKs1/U6RUWGF4N0tjAzszys9axurKx3cWUFZF05RE2/WSfpr1Szxs+5lMdGSAc0eF9JdY6xAkitpIaRUTxoSN6ftDvsOhmKkDl0jA0bTaTaODXVyabg78yYzEKwsiOfxK/y5SLm8JLf18V6UQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=ZTyIUkrH; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=ZTyIUkrH; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C4422204AB; Fri, 1 Mar 2024 13:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1709300405; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Zj+zGP9Sa++I+q72KNtMQR36SXcnafQVnmCmlX6WdUc=; b=ZTyIUkrHyzhNBDGRRf/mubcHGpcRwB1hdaIVVWgjZN8oX9vv6tRz1+69zTtjh8ukOBvLbU lAazvUUQXHYbIatwCjPNDZu/0tri8o3toz3/Q71n6xncalfubGIntkVDr/9H2LWKGEGxMt F1WwusGOfJpNkZPh2UMj9AUHA0Sdkmo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1709300405; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Zj+zGP9Sa++I+q72KNtMQR36SXcnafQVnmCmlX6WdUc=; b=ZTyIUkrHyzhNBDGRRf/mubcHGpcRwB1hdaIVVWgjZN8oX9vv6tRz1+69zTtjh8ukOBvLbU lAazvUUQXHYbIatwCjPNDZu/0tri8o3toz3/Q71n6xncalfubGIntkVDr/9H2LWKGEGxMt F1WwusGOfJpNkZPh2UMj9AUHA0Sdkmo= Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id BDC2C13A39; Fri, 1 Mar 2024 13:40:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id rz1OLrXa4WUXVwAAn2gu4w (envelope-from ); Fri, 01 Mar 2024 13:40:05 +0000 From: David Sterba To: torvalds@linux-foundation.org Cc: David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Btrfs fixes for 6.8-rc7, part 2 Date: Fri, 1 Mar 2024 14:32:55 +0100 Message-ID: X-Mailer: git-send-email 2.42.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: *** X-Spam-Score: 3.71 X-Spamd-Result: default: False [3.71 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.19)[-0.961]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[40.44%] X-Spam-Flag: NO X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792331436618880370 X-GMAIL-MSGID: 1792331436618880370 Hi, a few more fixes. Please pull, thanks. - fix freeing allocated id for anon dev when snapshot creation fails - fiemap fixes - followup for a recent deadlock fix, ranges that fiemap can access can still race with ordered extent completion - make sure fiemap with SYNC flag does not race with writes ---------------------------------------------------------------- The following changes since commit c7bb26b847e5b97814f522686068c5628e2b3646: btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve (2024-02-22 12:15:12 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git tags/for-6.8-rc6-tag for you to fetch changes up to e2b54eaf28df0c978626c9736b94f003b523b451: btrfs: fix double free of anonymous device after snapshot creation failure (2024-02-29 22:34:11 +0100) ---------------------------------------------------------------- Filipe Manana (3): btrfs: fix race between ordered extent completion and fiemap btrfs: ensure fiemap doesn't race with writes when FIEMAP_FLAG_SYNC is given btrfs: fix double free of anonymous device after snapshot creation failure fs/btrfs/disk-io.c | 22 ++++----- fs/btrfs/disk-io.h | 2 +- fs/btrfs/extent_io.c | 124 +++++++++++++++++++++++++++++++++++++++++-------- fs/btrfs/inode.c | 22 ++++++++- fs/btrfs/ioctl.c | 2 +- fs/btrfs/transaction.c | 2 +- 6 files changed, 139 insertions(+), 35 deletions(-)