]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Change BUG_ON to WARN_ON in service event complete
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 21 Oct 2015 23:47:03 +0000 (19:47 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:33:17 +0000 (08:33 -0800)
Orabug: 22342532

There's no need to kill the thread and eventually the kernel in this
case.  In fact, the remainder of the code won't hurt anything anyway,
so just complain that we're here and move along.

Prompted by a recent Linus diatribe.

Change-ID: Iec020d8bcfedffc1cd2553cc6905fd915bb3e670
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit b875f99b4cb454e0aa1e68d2d8792112a1e07050)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index fe6d1c4d88d26f88546e8ca4394ff6fa8cee48c4..ffa133bcd8f404b23bed15681e015fbcb111bf12 100644 (file)
@@ -5708,7 +5708,7 @@ static void i40e_handle_lan_overflow_event(struct i40e_pf *pf,
  **/
 static void i40e_service_event_complete(struct i40e_pf *pf)
 {
-       BUG_ON(!test_bit(__I40E_SERVICE_SCHED, &pf->state));
+       WARN_ON(!test_bit(__I40E_SERVICE_SCHED, &pf->state));
 
        /* flush memory to make sure state is correct before next watchog */
        smp_mb__before_atomic();