Skip to content

Commit 712182b

Browse files
committed
swap: yield device immediately
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 <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent c596bea commit 712182b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)