]> 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)
commita4c982f75d57a05fd37472d67db1dfae41747b3d
tree02d1ca1dfa89362c61958f81b14a9bfd702f64fa
parentf8c759cf7ed55057365c6d4d8a9d75f921ddef97
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