Re: [PATCH] nvme/pci: Use host managed power state for suspend

From: Keith Busch
Date: Mon May 13 2019 - 11:11:55 EST


On Mon, May 13, 2019 at 03:05:42PM +0000, Mario.Limonciello@xxxxxxxx wrote:
> This system power state - suspend to idle is going to freeze threads.
> But we're talking a multi threaded kernel. Can't there be a timing problem going
> on then too? With a disk flush being active in one task and the other task trying
> to put the disk into the deepest power state. If you don't freeze the queues how
> can you guarantee that didn't happen?

But if an active data flush task is running, then we're not idle and
shouldn't go to low power.