Skip to content

nvme and blk-mq hot plug fixes

Keith Busch linux-nvme 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 0 repliesNew
  2. v2 posting 2/20 of 10 patches 0 repliesSuperseded
  3. v2 posting 1/210 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12blk-mq: Wake tasks entering queue on dyingblock/blk-mq.c+1 -00 replies
2/12blk-mq: Export if requests were startedblock/blk-mq.c include/linux/blk-mq.h+7 -00 replies
3/12blk-mq: Let drivers cancel requeue_workblock/blk-mq.c include/linux/blk-mq.h+7 -00 replies
4/12blk-mq: Add helper to abort requeued requestsblock/blk-mq.c include/linux/blk-mq.h+21 -00 replies
5/12blk-mq: Allow requests to never expireblock/blk-mq.c block/blk-timeout.c include/linux/blk_types.h+8 -10 replies
6/12blk-mq: End unstarted requests on a dying queueblock/blk-mq.c+6 -10 replies
7/12NVMe: Start all requestsdrivers/block/nvme-core.c+12 -40 replies
8/12NVMe: Reference count admin queue usagedrivers/block/nvme-core.c+14 -140 replies
9/12NVMe: Admin queue removal handlingdrivers/block/nvme-core.c+21 -150 replies
10/12NVMe: Command abort handling fixesdrivers/block/nvme-core.c+13 -40 replies
11/12NVMe: Start and stop h/w queues on resetdrivers/block/nvme-core.c+41 -30 replies
12/12NVMe: Fix locking on abort handlingdrivers/block/nvme-core.c+19 -100 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCHv3 00/12] nvme and blk-mq hot plug fixes

Changes since version 2:

Attribute patch from Jens. There was no change log with the diff, so I just made one up. You're a better wordsmith so I won't be feel bad if you modify it.

Added new cmd_flag for REQ_NO_TIMEOUT, as opposed to using a magic value for "rq->timeout" from v2.

Fixed the irq save/restore locking when checking for stopped queue in req_completion requeue.

I noticed the timeout handling was accessing unlocked queues and dev list nodes, so I added one last patch for that.

I split the admin queue reference count into its own patch. The previous patch was changing too many logically separate things.

I put a "FIXME" in the timeout handling on a failed shutdown to speed things up. I know how to fix this but it's a more radical change that can go in a different series; making hot-plug and resets work safely is a higher priority.

Jens Axboe (1):
blk-mq: Add helper to abort requeued requests

Keith Busch (11):
blk-mq: Wake tasks entering queue on dying
blk-mq: Export if requests were started
blk-mq: Let drivers cancel requeue_work
blk-mq: Allow requests to never expire
blk-mq: End unstarted requests on a dying queue
NVMe: Start all requests
NVMe: Reference count admin queue usage
NVMe: Admin queue removal handling
NVMe: Command abort handling fixes
NVMe: Start and stop h/w queues on reset
NVMe: Fix locking on abort handling

 block/blk-mq.c            |   44 ++++++++++++-
 block/blk-timeout.c       |    3 +
 drivers/block/nvme-core.c |  158 ++++++++++++++++++++++++++++++++-------------
 include/linux/blk-mq.h    |    3 +
 include/linux/blk_types.h |    2 +
 5 files changed, 164 insertions(+), 46 deletions(-)
Signature · 1 line
1.7.10.4