]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: print proper nvme-fc devloss_tmo value
authorMartin George <marting@netapp.com>
Tue, 12 May 2020 16:47:04 +0000 (22:17 +0530)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:37 +0000 (07:12 +0200)
commit532151d58a12c58ecf5249ea92ba3a110fb74144
tree9ccf1fd73caa795d9fb8b1b09b1074d82fd4a946
parent6f3c38c77e00d6f6f40dfc3ee1c97779af18e211
nvme-fc: print proper nvme-fc devloss_tmo value

The nvme-fc devloss_tmo is computed as the min of either the
ctrl_loss_tmo (max_retries * reconnect_delay) or the remote port's
devloss_tmo. But what gets printed as the nvme-fc devloss_tmo in
nvme_fc_reconnect_or_delete() is always the remote port's devloss_tmo
value. So correct this by printing the min value instead.

Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c