[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0gJcMKbwjrwwnMi7OD59DoOTm3EKZrdr4eYs05qP10v6A@mail.gmail.com>
Date: Tue, 11 Jul 2023 20:01:09 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Christoph Hellwig <hch@....de>, Azat Khuzhin <a3at.mail@...il.com>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix writing maj:min to /sys/power/resume (fixes
hiberation with systemd)
On Tue, Jul 11, 2023 at 2:08 PM Christoph Hellwig <hch@....de> wrote:
>
> On Tue, Jul 11, 2023 at 01:48:12PM +0200, Azat Khuzhin wrote:
> > resume_store() first calls lookup_bdev() and after tries to handle
> > maj:min, but it does not reset the error before, hence if you will write
> > maj:min you will get ENOENT:
> >
> > # echo 259:2 >| /sys/power/resume
> > bash: echo: write error: No such file or directory
> >
> > This also should fix hiberation via systemd, since it uses this way.
>
> Looks good:
>
> Reviewed-by: Christoph Hellwig <hch@....de>
Applied as 6.5-rc material, thanks!
Powered by blists - more mailing lists