Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp264787lqr; Wed, 5 Jun 2024 05:39:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBwGxhmnT4WvXHGhetf0ZHjGVixqeYsYXuVb/xM20me8tom8oB1RHn6tTK4IY6nIXZknqzui9eolW84OI57QxGDhe9f5WqcnCh1RU9ig== X-Google-Smtp-Source: AGHT+IHfUKMIC76EIWMVNcBRfs3rM7LuN+h2OpFil9tV+fqi92DoaIgSyrVFM4CJjlm0svIbxqts X-Received: by 2002:a05:6e02:1d10:b0:374:a402:8c7b with SMTP id e9e14a558f8ab-374b1f58ef2mr21199225ab.20.1717591141272; Wed, 05 Jun 2024 05:39:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591141; cv=pass; d=google.com; s=arc-20160816; b=j8FKyR2mADzcAT2xAiK3E2pOgAnUEmF388us5Xj5R9lI38UbUlKUgbvG/ri5YsKAqY lrXiAfV2ZVF+hvqVQ3c9sXJA9DVKCelqN7ajybC/KVOsFY1s/xgKEBpQZCFdXfyxE1Gv 31EvvfS8iOfW4pQfDQ/fHRBbqNiB0SQl5CSWDQ1YUgqrdp1fDJKf10F1zQfcfC8p2+G7 3/3wb4/gMh4v6bz/wigIkWxeLjs4PLk5lEp5w3g5LiJIgncXHZE7OToSEZTTAvQMPnkl yPn6SaWrO0CIQz5aemWpwcPgeRboMzQ9a51U08Dw3oq0Xy2f0S0+a4EC7CfaqebGIz2E A79g== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IPPupyV6JuevsUfLPy0DkVcXtPhHuCHmZTy3bIQI4tI=; fh=Ru3sGULMUsuNShI5GMlH3AC49hPlCzs1B7S/+0CmBEM=; b=y2ZzycktSCUw6/HVIndLGaSDWVUWit+S/sXxNRQtVoL7Mb14w0PbH0p/VqsNiAdPfr Zyzj5gKnQs/tcZ8zff0Gs6eZhS3cPNcCnB4CKISq0N/2vufHnPCcuDpxLaTtmpxjvR5E m2fq3SIfLZs0YuVyb2bULK/1p9+O0rYFDRN9S8eV1UKuig4Cp5j9K49HcHWf77vzol6V cWe/bVPzHZAUMUke3N4xu1W5DCZdjeWwEKTNYqJXszFKesi+RxpejU9ns9q51Eok7xJg Rfqnhq6jiNvQvN+7by67hHaGT/whK+ZyQZQqYO9QOH5B/EXft/ufJERjoD5yLkQkftwh VNBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDLRTeKl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35a0e6a26si3658048a12.416.2024.06.05.05.39.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:39:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JDLRTeKl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EC25E283EB4 for ; Wed, 5 Jun 2024 12:29:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C2AF19B5AF; Wed, 5 Jun 2024 12:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JDLRTeKl" 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 4D5B8199241; Wed, 5 Jun 2024 12:02:31 +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=1717588951; cv=none; b=U3IAgF1mKbPD1w4SbrlpI3cmjO/U+63UMiMbSkjKbq+3KDHOajUw01zSJ740iGtT7nlsKxi5e3NCto9XRgjYJkP8mwciq4CSX0aB0I4Dp3brqEykpR5G9qvtkZqfWxwlSAnWb9AuJ0+2GEFbYHBlVnnXvm9Wp60prz+3gKptDBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588951; c=relaxed/simple; bh=hGDS1MidQGjaw2AvQaBkZlpc9DSRzLZnAViFmyzxi0U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pNcUHrvJf9cye+UCZul5aH13LdvIpqu1X6BReRnb1leoB0bgwUVqpftuYoA1v5KLiKND/PFC0+0ZC5yP2ATpalvpW1jFmypOD4nsaw5qIfohwKsMkfaOXKmzJAdsaHagvTeH+c+7CMZzLHUc8ordQ7PSHfDbWIRsJOIjvT1MC/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JDLRTeKl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32D3BC4AF0B; Wed, 5 Jun 2024 12:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588951; bh=hGDS1MidQGjaw2AvQaBkZlpc9DSRzLZnAViFmyzxi0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JDLRTeKl07VU272zYxcJGan5M+dFiD016QWljQ6lO44FK7EqfpfTUIj65oj0+LcMZ gHMznnMZMqV9hT7qbH/IoTqi1v0NnYGWgagrIi0CpIinz2QWe7Z2EAI6QQUUSopffH jkD4H9f15DmDV8DHSV/4zPolgKr9UY2hIeUnnI+81utCVx5tBYE9wap2L9NfjhiZk1 63LAwnHs2ymTlJor98eJtsvPnRP1BI0X1xFvtiocJbCP9/0pz3m0+tMVClk3UYuMnx PW+A9MtkdZhWYXDtO/DQ8lcXjm7aI/rukP6EVRQ6Y3ipl1x4D2h5nx9WJ84AQjpdER N9f4LeInqxmUw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christian Brauner , Petri Kaukasoina , Sasha Levin , rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 6.9 05/23] swap: yield device immediately Date: Wed, 5 Jun 2024 08:01:48 -0400 Message-ID: <20240605120220.2966127-5-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605120220.2966127-1-sashal@kernel.org> References: <20240605120220.2966127-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.9.3 Content-Transfer-Encoding: 8bit From: Christian Brauner [ Upstream commit 712182b67e831912f90259102ae334089e7bccd1 ] Otherwise we can cause spurious EBUSY issues when trying to mount the rootfs later on. Link: https://bugzilla.kernel.org/show_bug.cgi?id=218845 Reported-by: Petri Kaukasoina Signed-off-by: Christian Brauner Signed-off-by: Sasha Levin --- kernel/power/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 5bc04bfe2db1d..c6f24d17866d8 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -1600,7 +1600,7 @@ int swsusp_check(bool exclusive) put: if (error) - fput(hib_resume_bdev_file); + bdev_fput(hib_resume_bdev_file); else pr_debug("Image signature found, resuming\n"); } else { -- 2.43.0