[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <HK0P153MB02739E7D2F3618B7A4791593BFD00@HK0P153MB0273.APCP153.PROD.OUTLOOK.COM>
Date: Fri, 24 Apr 2020 03:45:19 +0000
From: Dexuan Cui <decui@...rosoft.com>
To: Bart Van Assche <bvanassche@....org>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"hch@....de" <hch@....de>, "hare@...e.de" <hare@...e.de>,
Michael Kelley <mikelley@...rosoft.com>,
Long Li <longli@...rosoft.com>,
"ming.lei@...hat.com" <ming.lei@...hat.com>,
Balsundar P <Balsundar.P@...rochip.com>
CC: "linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"wei.liu@...nel.org" <wei.liu@...nel.org>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
KY Srinivasan <kys@...rosoft.com>
Subject: RE: [PATCH] scsi: storvsc: Fix a panic in the hibernation procedure
> From: Bart Van Assche <bvanassche@....org>
> Sent: Thursday, April 23, 2020 4:25 PM
> On 2020-04-23 11:29, Dexuan Cui wrote:
> > So it looks the below patch also works for me:
> >
> > --- a/kernel/power/hibernate.c
> > +++ b/kernel/power/hibernate.c
> > @@ -898,6 +898,11 @@ static int software_resume(void)
> > error = freeze_processes();
> > if (error)
> > goto Close_Finish;
> > +
> > + error = freeze_kernel_threads();
> > + if (error)
> > + goto Close_Finish;
> > +
> > error = load_image_and_restore();
> > thaw_processes();
> > Finish:
> >
> > Just to be sure, I'll do more tests, but I believe the panic can be fixed
> > by this according to my tests I have done so far.
>
> If a freeze_kernel_threads() call is added in software_resume(), should
> a thaw_kernel_threads() call be added too?
>
> Anyway, please Cc me if a patch for software_resume() is submitted.
FYI, I posted a fix: https://lkml.org/lkml/2020/4/23/1540
Thanks,
-- Dexuan
Powered by blists - more mailing lists