On Tue, Mar 08, 2011 at 05:58:56PM +0800, Amerigo Wang wrote:V2: avoid calling slave_diable_netpoll() with write_lock_bh() held.
netconsole doesn't work in active-backup mode, because we don't do anything
for nic failover in active-backup mode. We should disable netpoll on the
failing slave when it is detected down and enable netpoll when it becomes
the active slave.
Tested by ifdown the current active slave and ifup it again for several times,
netconsole works well.
Signed-off-by: WANG Cong<amwang@xxxxxxxxxx>
Cc: Neil Horman<nhorman@xxxxxxxxxxxxx>
It seems like you are going to a lot of trouble to fix a bug where
netpoll will not be setup on any interface that is down when enslaved.
That seems to be the only path that would not have slave->np setup
properly at enslavement.
Did you ever try just this?