NVMe: Surprise removal fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | NVMe: Fix io incapable return valuesdrivers/ | +2 | 2 replies | |
| 2/4 | NVMe: Sync stopped queues with block layerdrivers/ | +1 | 2 replies | |
| 2/4 | NVMe: Sync stopped queues with block layer | +0 | 0 replies | |
| 3/4 | NVMe: Surprise removal fixesdrivers/ drivers/ | +21 | 1 reply | |
| 3/4 | NVMe: Surprise removal fixes | +0 | 0 replies | |
| 3/4 | NVMe: Surprise removal fixes | +0 | 0 replies | |
| 4/4 | blk-mq: End unstarted requests on dying queueblock/ | +4 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] NVMe: Surprise removal fixes
First on the 'dd' experiements, I did not find kernel that "worked" as expected on a surprise removal. The IO process runs until SIGKILL is recieved. I don't think that's right, and it causes noticable system performance issues for unrelated tasks.
This series is just focusing on getting the driver to cleanup its part so it can unbind from a controller.
Earlier feedback suggested this functionality be in the block layer. I don't have the devices to test what happens with other drivers, and the desired sequence seems unique to NVMe. Maybe that's an indication that the driver's flow could benefit from some redesign, or maybe it's an artifact from having the controller and storage being the same device.
In any case, I would like to isolate this fix to the NVMe driver in the interest of time, and flush out the block layer before the next merge window.
Keith Busch (4):
NVMe: Fix io incapable return values
NVMe: Sync stopped queues with block layer
NVMe: Surprise removal fixes
blk-mq: End unstarted requests on dying queue
block/blk-mq.c | 6 ++++-- drivers/nvme/host/core.c | 14 ++++++++------ drivers/nvme/host/nvme.h | 4 ++-- drivers/nvme/host/pci.c | 14 ++++++++++++++ 4 files changed, 28 insertions(+), 10 deletions(-)
Signature · 1 line
2.6.2.307.g37023ba