From patchwork Tue Feb 20 12:24:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13563981 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4CB4692FC for ; Tue, 20 Feb 2024 12:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708431881; cv=none; b=ZCfvQk5xJLN8pkwBPE4s/NgWtm7HTw0lYdvyxgn4bAVQViX1qkkfij1qE5zrKKWy1BEvckTJyVp/LRMOc2Qa4A7MDUrg48Dz3GYb17TSOjGT8lwaH9Yh501W91L9kM+hZ6yb23+R+Qzf3xQqSOwSLrX+DfGgcLaeVgtgECs4X5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708431881; c=relaxed/simple; bh=gtWtLWd8/wA+RjE6bZzp5u+ly7pdKAiJKlctcGrLkHs=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=oN7cPx7OhPD7R28QqUM1se6LI0gSf1zK1sh7MveuEHYIqcyl6h+IagnbBEtQ3zjWuFWtwzJFZol6gViLwPfVIUGxxjGyXLmygF8aP6o+ytxqIOecKc78m+wPWD9OqrIK9o6HbaJ8E6wnF1P6b12ZXR5fIj2N401k63+iL5SPigw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f84eBkVb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f84eBkVb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4A7FC433C7 for ; Tue, 20 Feb 2024 12:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708431881; bh=gtWtLWd8/wA+RjE6bZzp5u+ly7pdKAiJKlctcGrLkHs=; h=From:To:Subject:Date:From; b=f84eBkVbOIx0x3oUyDf0LCIaGcOP1s0m8Yt+ldGU8H30d3nMRZNw8tXZI+PfBCZvn Gh48jQQrEkQuGsmSEc6otsKW7nOBoC5w7uvUP8LQC8tsXpI4VtkF9xa8Q8g3sWhjWZ p9sljqlPk6BEH9QFfRB741zFPEHb/JGJlkw58nAQhAUkUvZzLnBDtt9vwQr4c1Mtoz kayMPotaTn52nUyeHIzHWDn0TAVvL6s2bDyeYUNnAcQ85+QmQ0ffpZ50PNxJBeys1V JqrrviQqUDr5eeoTo2FNECygUUYA4vL2cjnuMJLHxyNTHkIfIbEfZE2BrZXXL7itbm uC3kK05LCgPcg== From: fdmanana@kernel.org To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/2] btrfs: fix a couple KCSAN warnings Date: Tue, 20 Feb 2024 12:24:32 +0000 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Filipe Manana KCSAN reports a couple data races around access to block reserves. While they are very likely harmless it generates some noise and reports will keep coming, so address these. Filipe Manana (2): btrfs: fix data races when accessing the reserved amount of block reserves btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve fs/btrfs/block-rsv.c | 2 +- fs/btrfs/block-rsv.h | 32 ++++++++++++++++++++++++++++++++ fs/btrfs/space-info.c | 26 +++++++++++++------------- 3 files changed, 46 insertions(+), 14 deletions(-) Reviewed-by: David Sterba