Skip to content

Namespace attachment fixes/simplifications

Keith Busch linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2NVMe: Reference count open namespacesdrivers/block/nvme-core.c include/linux/nvme.h+21 -91 reply
1/2NVMe: Reference count open namespaces+0 -01 reply
2/2NVMe: Simplify device resume on io queue failuredrivers/block/nvme-core.c include/linux/nvme.h+11 -411 reply
2/2NVMe: Simplify device resume on io queue failure+0 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Namespace attachment fixes/simplifications

This started off investigating a suggestion Christoph made on the awkward way the driver removes disks if the controller can't handle IO after attempting a resume from suspend.

It turns out that it has been a LONG time since the error path from resume was tested. It definitely was broken, so this turned into a two part series. I can split 2/2 into a two more if anyone thinks changes are unrelated.

Quoted 1 line

From testing it became clear that it is not sufficient to reference count

only the controller anymore. Jens suggested a while back to reference count the namespaces, but I didn't think there was a need since namespaces couldn't be deleted while the controller had active references anyway. Now that namespaces can be deleted independent of the controller, we really do need a separate reference count.

Keith Busch (2):
NVMe: Reference count open namespaces
NVMe: Simplify device resume on io queue failure

 drivers/block/nvme-core.c |   80 ++++++++++++++++++---------------------------
 include/linux/nvme.h      |    2 +-
 2 files changed, 32 insertions(+), 50 deletions(-)
Signature · 1 line
1.7.10.4