patch-2.1.20 linux/include/net/neighbour.h

Next file: linux/include/net/netbeui.h
Previous file: linux/include/net/ndisc.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.19/linux/include/net/neighbour.h linux/include/net/neighbour.h
@@ -119,15 +119,13 @@
 	if (tbl->tbl_lock == 1)
 	{
 		neigh_table_ins(tbl, neigh);
-		end_bh_atomic();
 	}
 	else
 	{
-		end_bh_atomic();
 		tbl->tbl_bh_mask |= NT_MASK_QUEUE;
 		neigh_queue_ins(tbl, neigh);
 	}
-	
+	end_bh_atomic();	
 }
 
 
@@ -164,7 +162,9 @@
 {
 	start_bh_atomic();
 	if (atomic_dec_and_test(&tbl->tbl_lock) && tbl->tbl_bh_mask)
+	{
 		neigh_tbl_run_bh(tbl);
+	}
 	end_bh_atomic();
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov