Re: [PATCH v2] PM: Add a switch for disabling/enabling sync() before suspend
From: Jonas Meurer
Date: Fri Jan 10 2020 - 05:52:31 EST
Hey Rafael,
Jonas Meurer:
> The switch allows to enable or disable the final sync() from the suspend.c
> Linux Kernel system suspend implementation. This is useful to avoid race
> conditions if block devices have been suspended before. Be aware that you
> have to take care of sync() yourself before suspending the system if you
> disable it here.
>
> Congruously, the behaviour of build-time switch CONFIG_SUSPEND_SKIP_SYNC
> is slightly changed: It now configures the default for fun-time switch
> '/sys/power/sync_on_suspend'.
>
> Signed-off-by: Jonas Meurer <jonas@xxxxxxxxxxxxxxx>
Sorry to poke you again :)
Did you find time to further look into the patch yet?
Cheers
jonas
Attachment:
signature.asc
Description: OpenPGP digital signature