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 <petri.kaukasoina@tuni.fi> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
c596bea145
commit
712182b67e
@ -1600,7 +1600,7 @@ int swsusp_check(bool exclusive)
|
|||||||
|
|
||||||
put:
|
put:
|
||||||
if (error)
|
if (error)
|
||||||
fput(hib_resume_bdev_file);
|
bdev_fput(hib_resume_bdev_file);
|
||||||
else
|
else
|
||||||
pr_debug("Image signature found, resuming\n");
|
pr_debug("Image signature found, resuming\n");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user