]> asedeno.scripts.mit.edu Git - linux.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)
commite818a5b487fea20494b0e48548c1085634abdc0d
tree02d1ca1dfa89362c61958f81b14a9bfd702f64fa
parent82b057caefaff2a891f821a617d939f46e03e844
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