]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c1a824e022756cdaaed53edfb3c3aa770ac198c
treeec49043b572039f53f84b457c11145a4b885aa27
parent6713b6e8034f0fab2be92a70f3dc2e0a9a3640e8
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