linux-next: manual merge of the pm tree with Linus' tree

Stephen Rothwell posted 1 patch 1 week ago
linux-next: manual merge of the pm tree with Linus' tree
Posted by Stephen Rothwell 1 week ago
Hi all,

Today's linux-next merge of the pm tree got a conflict in:

  kernel/power/hibernate.c

between commit:

  a3f8f8662771 ("power: always freeze efivarfs")

from Linus' tree and commit:

  8e2d57e6539b ("PM: sleep: Call pm_sleep_fs_sync() instead of ksys_sync_helper()")

from the pm tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc kernel/power/hibernate.c
index 26e45f86b955,7fed1cd36e4d..000000000000
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@@ -820,8 -820,12 +820,11 @@@ int hibernate(void
  	if (error)
  		goto Restore;
  
- 	ksys_sync_helper();
+ 	error = pm_sleep_fs_sync();
+ 	if (error)
+ 		goto Notify;
+ 
 -	if (filesystem_freeze_enabled)
 -		filesystems_freeze();
 +	filesystems_freeze(filesystem_freeze_enabled);
  
  	error = freeze_processes();
  	if (error)
Re: linux-next: manual merge of the pm tree with Linus' tree
Posted by Rafael J. Wysocki 1 week ago
Hi,

On Mon, Nov 24, 2025 at 2:39 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi all,
>
> Today's linux-next merge of the pm tree got a conflict in:
>
>   kernel/power/hibernate.c
>
> between commit:
>
>   a3f8f8662771 ("power: always freeze efivarfs")
>
> from Linus' tree and commit:
>
>   8e2d57e6539b ("PM: sleep: Call pm_sleep_fs_sync() instead of ksys_sync_helper()")
>
> from the pm tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc kernel/power/hibernate.c
> index 26e45f86b955,7fed1cd36e4d..000000000000
> --- a/kernel/power/hibernate.c
> +++ b/kernel/power/hibernate.c
> @@@ -820,8 -820,12 +820,11 @@@ int hibernate(void
>         if (error)
>                 goto Restore;
>
> -       ksys_sync_helper();
> +       error = pm_sleep_fs_sync();
> +       if (error)
> +               goto Notify;
> +
>  -      if (filesystem_freeze_enabled)
>  -              filesystems_freeze();
>  +      filesystems_freeze(filesystem_freeze_enabled);
>
>         error = freeze_processes();
>         if (error)

Thanks for resolving this, it looks good to me.