Skip to content
  • Neil Horman's avatar
    drop_monitor: convert to modular building · cad456d5
    Neil Horman authored
    
    
    When I first wrote drop monitor I wrote it to just build monolithically.  There
    is no reason it can't be built modularly as well, so lets give it that
    flexibiity.
    
    I've tested this by building it as both a module and monolithically, and it
    seems to work quite well
    
    Change notes:
    
    v2)
    * fixed for_each_present_cpu loops to be more correct as per Eric D.
    * Converted exit path failures to BUG_ON as per Ben H.
    
    v3)
    * Converted del_timer to del_timer_sync to close race noted by Ben H.
    
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    CC: "David S. Miller" <davem@davemloft.net>
    CC: Eric Dumazet <eric.dumazet@gmail.com>
    CC: Ben Hutchings <bhutchings@solarflare.com>
    Reviewed-by: default avatarBen Hutchings <bhutchings@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cad456d5