tmp_suning_uos_patched/drivers/net/hamradio
Ralf Baechle bc0a743860 [PATCH] rcu in bpqether driver.
From Suzanne Wood <suzannew@cs.pdx.edu>:

Clarify RCU implementation in bpqether.c.

Because bpq_new_device() calls list_add_rcu() and bpq_free_device() calls
list_del_rcu(), substitute list_for_each_entry_rcu() for
list_for_each_entry() in bpq_get_ax25_dev() and in bpq_seq_start().

Add rcu dereference protection in bpq_seq_next().

The rcu_read_lock()/unlock() in bpq_device_event() are removed because
netdev event handlers are called with RTNL locking in place.

FYI: bpq_free_device() calls list_del_rcu() which, per list.h, requires
synchronize_rcu() which can block or call_rcu() or call_rcu_bh() which
cannot block.  Herbert Xu notes that synchronization is done here by
unregister_netdevice().  This calls synchronize_net() which in turn uses
synchronize_rcu().

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-10-18 17:01:27 -04:00
..
6pack.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
baycom_epp.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
baycom_par.c [PATCH] Use time_before in hamradio drivers 2005-07-31 00:51:49 -04:00
baycom_ser_fdx.c [PATCH] Use time_before in hamradio drivers 2005-07-31 00:51:49 -04:00
baycom_ser_hdx.c [PATCH] Use time_before in hamradio drivers 2005-07-31 00:51:49 -04:00
bpqether.c [PATCH] rcu in bpqether driver. 2005-10-18 17:01:27 -04:00
dmascc.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
hdlcdrv.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
Kconfig [PATCH] SMP rewrite of mkiss 2005-08-27 04:35:31 -04:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mkiss.c [PATCH] AX.25: Convert mkiss.c to DEFINE_RWLOCK 2005-10-04 07:42:22 -04:00
mkiss.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scc.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
yam1200.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
yam9600.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
yam.c [AX.25]: Rename ax25_encapsulate to ax25_hard_header 2005-09-12 14:21:01 -07:00
z8530.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00