Skip to content

NVMe fixes

Keith Busch linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10blk-mq: End unstarted requests on dying queueblock/blk-mq.c+4 -20 replies
2/10NVMe: Fix io incapable return valuesdrivers/nvme/host/nvme.h+2 -20 replies
3/10NVMe: Allow request mergesdrivers/nvme/host/core.c+0 -10 replies
4/10NVMe: Fix namespace removal deadlockdrivers/nvme/host/core.c drivers/nvme/host/nvme.h+57 -301 reply
5/10NVMe: Requeue requests on suspended queuesdrivers/nvme/host/pci.c+5 -00 replies
6/10NVMe: Poll device while still active during removedrivers/nvme/host/pci.c+1 -50 replies
7/10NVMe: Simplify device reset failuredrivers/nvme/host/pci.c+21 -271 reply
8/10NVMe: Move error handling to failed reset handlerdrivers/nvme/host/core.c drivers/nvme/host/nvme.h drivers/nvme/host/pci.c+43 -161 reply
8/10NVMe: Move error handling to failed reset handler+0 -01 reply
9/10NVMe: Mark queues as dead on degraded controllerdrivers/nvme/host/pci.c+1 -00 replies
10/10NVMe: Rate limit nvme IO warningsdrivers/nvme/host/pci.c+1 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHv2-4.5 00/10] NVMe fixes

Thank you everyone for the earlier review comments.

The entire series is here, though most of the code is not changing from the previous.

I'll gladly handle merging this with the 4.6 branch if/when this goes through.

v1 -> v2:

Added all recieved "Reviewed-by".

Dropped patch for NVMe's max_dev_sectors. This is fixed in the block layer with a different and generic patch external to this series.

Dropped patch removing nvme_workq's WQ_MEM_RECLAIM. The flush sync warning that patch was trying to address is fixed by moving the namespace cleanup from the nvme_workq to an existing nvme callback scheduled on the system workqueue.

Implemented Sagi's suggestion to move the "nvme_kill_ns_queues" to from pci to core. There was no real dependency on PCI after a very minor modification. Also added code comments to explain the function usage.

Combined the "NS_DEAD" state patch with the namespace queue cleanup handling in the reset_work. The first really counted on the second to actually be useful, so making it a single commit.

Fixed an error code to be negative, pointed out in review.

Commented the requirement for nvme_remove()'s necessity to handle a partially initialized.

Made nvme's "Cancelling I/O ..." message debug level, in addition to rate limted.

Keith Busch (10):
blk-mq: End unstarted requests on dying queue
NVMe: Fix io incapable return values
NVMe: Allow request merges
NVMe: Fix namespace removal deadlock
NVMe: Requeue requests on suspended queues
NVMe: Poll device while still active during remove
NVMe: Simplify device reset failure
NVMe: Move error handling to failed reset handler
NVMe: Mark queues as dead on degraded controller
NVMe: Rate limit nvme IO warnings

 block/blk-mq.c           |   6 ++-
 drivers/nvme/host/core.c | 105 ++++++++++++++++++++++++++++++++---------------
 drivers/nvme/host/nvme.h |  13 +++++-
 drivers/nvme/host/pci.c  |  66 ++++++++++++++---------------
 4 files changed, 121 insertions(+), 69 deletions(-)
Signature · 1 line
2.6.2.307.g37023ba