Skip to content

nvme suspend/resume fix

Keith Busch linux-block linux-nvme 1 version Applied

Status from this message: I've queued it up for this series, thanks Keith.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3blk-mq: Export blk_mq_freeze_queue_waitblock/blk-mq.c include/linux/blk-mq.h+3 -10 replies
2/3blk-mq: Provide freeze queue timeoutblock/blk-mq.c include/linux/blk-mq.h+11 -01 reply
3/3nvme: Complete all stuck requestsdrivers/nvme/host/core.c drivers/nvme/host/nvme.h drivers/nvme/host/pci.c+79 -51 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigSagi Grimberg
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] nvme suspend/resume fix

Hi Jens,

This is hopefully the last version to fix nvme stopping blk-mq's CPU event from making forward progress. The solution requires a couple new blk-mq exports so the nvme driver can properly sync with queue states.

Since this depends on the blk-mq parts, and if you approve of the proposal, I think it'd be easiest if you can take this directly into linux-block/for-linus. Otherwise, we can send you a pull request if you Ack the blk-mq parts.

The difference from the previous patch is an update that Artur confirmed passes hibernate on a stacked request queue. Personally, I tested this for several hours with fio running buffered writes in the back-ground and rtcwake running suspend/resume at intervals. This succeeded with no fio errors.

Keith Busch (3):
blk-mq: Export blk_mq_freeze_queue_wait
blk-mq: Provide queue freeze wait timeout
nvme: Complete all stuck requests

 block/blk-mq.c           | 12 +++++++++++-
 drivers/nvme/host/core.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 drivers/nvme/host/nvme.h |  4 ++++
 drivers/nvme/host/pci.c  | 33 ++++++++++++++++++++++++++++-----
 include/linux/blk-mq.h   |  3 +++
 5 files changed, 93 insertions(+), 6 deletions(-)
Signature · 1 line
2.5.5