]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: fast fail incoming requests while we reconnect
authorSagi Grimberg <sagi@grimberg.me>
Mon, 5 Jun 2017 17:35:56 +0000 (20:35 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Jun 2017 09:08:51 +0000 (11:08 +0200)
commit7746953ca8a803e9c85090fd83656dbe190cb3f4
tree02d1ca1dfa89362c61958f81b14a9bfd702f64fa
parentbba3909cb4087068266f201c641d877d61587ccc
nvme-rdma: fast fail incoming requests while we reconnect

When we encounter an transport/controller errors, error recovery
kicks in which performs:
1. stops io/admin queues
2. moves transport queues out of LIVE state
3. fast fail pending io
4. schedule periodic reconnects.

But we also need to fast fail incoming IO taht enters after we
already scheduled. Given that our queue is not LIVE anymore, simply
restart the request queues to fail in .queue_rq

Reported-by: Alex Turin <alex@vastdata.com>
Reported-by: shahar.salzman <shahar.salzman@gmail.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
drivers/nvme/host/rdma.c