RE: [PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in software_resume()

2020-05-05 Thread Dexuan Cui
> From: Pavel Machek > Sent: Tuesday, May 5, 2020 5:10 AM > To: Greg Kroah-Hartman > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Dexuan Cui > ; Rafael J. Wysocki > Subject: Re: [PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in > software_resume() &

Re: [PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in software_resume()

2020-05-05 Thread Pavel Machek
Hi! > commit 2351f8d295ed63393190e39c2f7c1fee1a80578f upstream. > > Currently the kernel threads are not frozen in software_resume(), so > between dpm_suspend_start(PMSG_QUIESCE) and resume_target_kernel(), > system_freezable_power_efficient_wq can still try to submit SCSI > commands and this can

[PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in software_resume()

2020-05-04 Thread Greg Kroah-Hartman
From: Dexuan Cui commit 2351f8d295ed63393190e39c2f7c1fee1a80578f upstream. Currently the kernel threads are not frozen in software_resume(), so between dpm_suspend_start(PMSG_QUIESCE) and resume_target_kernel(), system_freezable_power_efficient_wq can still try to submit SCSI commands and this c