]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bonding: rate-limit bonding driver inspect messages
authorPraveen Kumar Kannoju <praveen.kannoju@oracle.com>
Wed, 21 Feb 2024 08:27:52 +0000 (13:57 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Feb 2024 03:13:18 +0000 (19:13 -0800)
commita4634aa71fee11f5e3e13bf7d80ee1480a64ce70
treecf51a022fe536e55e7c7bc463244aa9659eb0ad1
parent4679f4f123cf5d26aea50348415776832b7e963f
bonding: rate-limit bonding driver inspect messages

Through the routine bond_mii_monitor(), bonding driver inspects and commits
the slave state changes. During the times when slave state change and
failure in aqcuiring rtnl lock happen at the same time, the routine
bond_mii_monitor() reschedules itself to come around after 1 msec to commit
the new state.

During this, it executes the routine bond_miimon_inspect() to re-inspect
the state chane and prints the corresponding slave state on to the console.
Hence we do see a message at every 1 msec till the rtnl lock is acquired
and state chage is committed.

This patch doesn't change how bond functions. It only simply limits this
kind of log flood.

Signed-off-by: Praveen Kumar Kannoju <praveen.kannoju@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Link: https://lore.kernel.org/r/20240221082752.4660-1-praveen.kannoju@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c