nvme-blkmq fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] nvme-blkmq fixes
Quoted 15 lines · Jens Axboe
Quoted 4 lines · Jens Axboe
Quoted 2 lines · Keith Busch
Is there something available to call that I'm missing or do I need to add more removal handling?
Quoted 9 lines
So that's actually a case where having the queues auto-started on requeue run is harmful, since we should be able to handle this situation by stopping queues, requeueing, and then having a helper to eventually abort pending requeued work, if we have to. But if you simply requeue them and defer kicking the requeue list it might work. At that point you'd either kick the requeues (and hence start processing them) if things went well on the reset, or we could have some
blk_mq_abort_requeues()helper that'd kill them with-EIOinstead. Would that work for you?
Quoted 1 line
Something like this.
That's very close to where I was trying to taking this, but you beat me to it! At least I was going the right direction. :)
I'll test this with my driver bits and resend when it works.
If anyone's interested, I'm testing by queueing lots of IO then taking the link down. I don't have a hotplug capable machine, so using pcie trickery to force it offline.
Here's my 'fio' commandline:
# fio --name=global --filename=/dev/nvme0n1 --direct=1 --bs=4k \
--rw=randrw --ioengine=libaio --iodepth=128 --name=foobarAnd then taking the link down with pci link control. My nvme controller is connected to bridge downstream port 00:03.2.
# setpci -s 00:03.2 CAP_EXP+10.b=10:10
That should almost immediately trigger reset handling since reading CSTS returns -1 in the polling thread, which will of course fail to recover and request removal.