Skip to content

Commit d143321

Browse files
braunergregkh
authored andcommitted
swap: yield device immediately
[ Upstream commit 712182b ] 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 <petri.kaukasoina@tuni.fi> Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent af22194 commit d143321

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/power/swap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ int swsusp_check(bool exclusive)
16001600

16011601
put:
16021602
if (error)
1603-
fput(hib_resume_bdev_file);
1603+
bdev_fput(hib_resume_bdev_file);
16041604
else
16051605
pr_debug("Image signature found, resuming\n");
16061606
} else {

0 commit comments

Comments
 (0)