Commit 712182b6 authored by Christian Brauner's avatar Christian Brauner

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=218845Reported-by: default avatarPetri Kaukasoina <petri.kaukasoina@tuni.fi>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent c596bea1
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment