]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Fix reporter's recovery condition
authorAya Levin <ayal@mellanox.com>
Mon, 4 May 2020 08:27:46 +0000 (11:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:40:39 +0000 (10:40 -0700)
commit7c911864d19d0df083d19530980683af6f7f0615
treeceebd12c562cadbe733584e955fa73a20db987f5
parent5390682e2f14c6759f0e70e2925c02109e7a6fd7
devlink: Fix reporter's recovery condition

Devlink health core conditions the reporter's recovery with the
expiration of the grace period. This is not relevant for the first
recovery. Explicitly demand that the grace period will only apply to
recoveries other than the first.

Fixes: c9490b1ee81c ("devlink: Add health report functionality")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c