nvme-fabrics: fix ctrl_loss_tmo < 0 to reconnect forever
authorTal Shorer <tal.shorer@gmail.com>
Tue, 7 Aug 2018 20:42:39 +0000 (23:42 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Aug 2018 10:01:49 +0000 (12:01 +0200)
commit66414e80245e1e73222f67ee711951c7f4bdedab
treeec49043b572039f53f84b457c11145a4b885aa27
parentdedf0be544614b6d9d395e78d72cc8c30d03e440
nvme-fabrics: fix ctrl_loss_tmo < 0 to reconnect forever

When the user supplies a ctrl_loss_tmo < 0, we warn them that this will
cause the fabrics layer to attempt reconnection forever.  However, in
reality the fabrics layer never attempts to reconnect because the
condition to test whether we should reconnect is backwards in this case.

Signed-off-by: Tal Shorer <tal.shorer@gmail.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c