Skip to content

NVMe hot plug stuff

Keith Busch linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5NVMe: Add controller removing statedrivers/nvme/host/pci.c+4 -02 replies
2/5NVMe: Fix namespace removal deadlockdrivers/nvme/host/core.c drivers/nvme/host/nvme.h+13 -64 replies
2/5NVMe: Fix namespace removal deadlock+0 -00 replies
3/5NVMe: Simplify device reset failuredrivers/nvme/host/pci.c+21 -270 replies
4/5NVMe: Move error handling to failed reset handlerdrivers/nvme/host/core.c drivers/nvme/host/nvme.h drivers/nvme/host/pci.c+44 -182 replies
4/5NVMe: Move error handling to failed reset handlerdrivers/nvme/host/pci.c+6 -00 replies
5/5NVMe: Don't unmap controller registers on resetdrivers/nvme/host/pci.c+42 -292 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH-4.5-v3 0/5] NVMe hot plug stuff

This is based of the current linux-block/for-linus branch.

Only 4/5 is the same as from v2, and have retained the reviews. The rest are new or different.

v2->v3:

Used a different approach to the namespace removal deadlock by reducing the scope of the namespace mutex so removal doesn't hold it during IO. This has a dependency on the first patch to ensure a scan doesn't somehow trigger (however unlikely) during removal.

Squashed v2's follow up fix for checking namespace state in nvme's queue_rq.

The final patch doesn't unmap controller registers until removal. This makes it safe to run startup and shutdown concurrently. We could possibly later micro optimize the IO path since the queue doorbell is always mapped. The patch was tested with suspend/resume using rtcwake.

Keith Busch (5):
NVMe: Add controller removing state
NVMe: Fix namespace removal deadlock
NVMe: Simplify device reset failure
NVMe: Move error handling to failed reset handler
NVMe: Don't unmap controller registers on reset

 drivers/nvme/host/core.c |  62 +++++++++++++++--------
 drivers/nvme/host/nvme.h |   6 +++
 drivers/nvme/host/pci.c  | 125 ++++++++++++++++++++++++++---------------------
 3 files changed, 118 insertions(+), 75 deletions(-)
Signature · 1 line
2.6.2.307.g37023ba