Patch "devlink: make health report on unregistered instance warn just once" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    devlink: make health report on unregistered instance warn just once

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     devlink-make-health-report-on-unregistered-instance-.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ffed50746946c408ab88d16ea7c730798e9e312c
Author: Jakub Kicinski <kuba@xxxxxxxxxx>
Date:   Tue May 30 18:55:23 2023 -0700

    devlink: make health report on unregistered instance warn just once
    
    [ Upstream commit 6f4b98147b8dfcabacb19b5c6abd087af66d0049 ]
    
    Devlink health is involved in error recovery. Machines in bad
    state tend to be fairly unreliable, and occasionally get stuck
    in error loops. Even with a reasonable grace period devlink health
    may get a thousand reports in an hour.
    
    In case of reporting on an unregistered devlink instance
    the subsequent reports don't add much value. Switch to
    WARN_ON_ONCE() to avoid flooding dmesg and fleet monitoring
    dashboards.
    
    Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230531015523.48961-1-kuba@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/devlink/health.c b/net/devlink/health.c
index 0839706d5741a..194340a8bb863 100644
--- a/net/devlink/health.c
+++ b/net/devlink/health.c
@@ -480,7 +480,7 @@ static void devlink_recover_notify(struct devlink_health_reporter *reporter,
 	int err;
 
 	WARN_ON(cmd != DEVLINK_CMD_HEALTH_REPORTER_RECOVER);
-	WARN_ON(!xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED));
+	ASSERT_DEVLINK_REGISTERED(devlink);
 
 	msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
 	if (!msg)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux