netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next-2.6 00/10] caif: rcu, refactoring and bugfixes
@ 2011-05-13 12:43 Sjur Brændeland
  2011-05-13 12:43 ` [net-next-2.6 01/10] caif: Use rcu_read_lock in CAIF mux layer Sjur Brændeland
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Sjur Brændeland @ 2011-05-13 12:43 UTC (permalink / raw)
  To: David S. Miller, netdev; +Cc: Sjur Brændeland

This patch-set introduces RCU in the CAIF stack and
fixes problems found when removing CAIF Link layer during traffic.

The pattern used for RCU is mostly this:
	rcu_read_lock();
	p = get();
	hold(p);
	rcu_read_unlock();
	use(p);
	put(p);

And when freeing:
	synchronize_rcu();
	wait_refcnt(p);
	kfree(p);

Sjur Brændeland (10):
  caif: Use rcu_read_lock in CAIF mux layer.
  caif: Use RCU instead of spin-lock in caif_dev.c
  caif: Use RCU and lists in cfcnfg.c for managing caif link layers
  caif: Add ref-count to framing layer
  caif: Move refcount from service layer to sock and dev.
  caif: Protected in-flight packets using dev or sock refcont.
  caif: prepare support for namespaces
  caif: Handle dev_queue_xmit errors.
  caif: Bugfix debugfs directory name must be unique.
  caif: remove unesesarry exports

 include/net/caif/caif_dev.h |   43 +++--
 include/net/caif/cfcnfg.h   |   71 ++-----
 include/net/caif/cfctrl.h   |    3 +-
 include/net/caif/cffrml.h   |    7 +-
 include/net/caif/cfpkt.h    |    1 -
 include/net/caif/cfsrvl.h   |   29 ++--
 net/caif/Makefile           |    2 +-
 net/caif/caif_config_util.c |   99 ---------
 net/caif/caif_dev.c         |  349 +++++++++++++++++-------------
 net/caif/caif_socket.c      |   71 +++++--
 net/caif/cfcnfg.c           |  505 ++++++++++++++++++++++++++++---------------
 net/caif/cfctrl.c           |  121 ++++++++---
 net/caif/cffrml.c           |   54 +++++-
 net/caif/cfmuxl.c           |  119 +++++++----
 net/caif/cfpkt_skbuff.c     |   27 +--
 net/caif/cfrfml.c           |    4 +-
 net/caif/cfsrvl.c           |   35 +++-
 net/caif/cfveil.c           |    8 +-
 net/caif/chnl_net.c         |   45 +++-
 19 files changed, 929 insertions(+), 664 deletions(-)
 delete mode 100644 net/caif/caif_config_util.c


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-05-15 21:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 12:43 [net-next-2.6 00/10] caif: rcu, refactoring and bugfixes Sjur Brændeland
2011-05-13 12:43 ` [net-next-2.6 01/10] caif: Use rcu_read_lock in CAIF mux layer Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 02/10] caif: Use RCU instead of spin-lock in caif_dev.c Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 03/10] caif: Use RCU and lists in cfcnfg.c for managing caif link layers Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 04/10] caif: Add ref-count to framing layer Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 05/10] caif: Move refcount from service layer to sock and dev Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 06/10] caif: Protected in-flight packets using dev or sock refcont Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 07/10] caif: prepare support for namespaces Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 08/10] caif: Handle dev_queue_xmit errors Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 09/10] caif: Bugfix debugfs directory name must be unique Sjur Brændeland
2011-05-13 12:44 ` [net-next-2.6 10/10] caif: remove unesesarry exports Sjur Brændeland
2011-05-15 21:48 ` [net-next-2.6 00/10] caif: rcu, refactoring and bugfixes David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).