1. 17 Oct, 2008 4 commits
    • Eric Van Hensbergen's avatar
      9p: remove unnecessary prototypes · 5503ac56
      Eric Van Hensbergen authored
      Cleanup files by reordering functions in order to remove need for
      unnecessary function prototypes.
      There are no code changes here, just functions being moved around and
      prototypes being eliminated.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
    • Eric Van Hensbergen's avatar
      9p: remove duplicate client state · bead27f0
      Eric Van Hensbergen authored
      Now that we are passing client state into the transport modules, remove
      duplicate state which is present in transport private structures.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
    • Eric Van Hensbergen's avatar
      9p: consolidate transport structure · 8b81ef58
      Eric Van Hensbergen authored
      Right now there is a transport module structure which provides per-transport
      type functions and data and a transport structure which contains per-instance
      public data as well as function pointers to instance specific functions.
      This patch moves public transport visible instance data to the client
      structure (which in some cases had duplicate data) and consolidates the
      functions into the transport module structure.
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
    • Tejun Heo's avatar
      9p-trans_fd: use single poller · 992b3f1d
      Tejun Heo authored
      trans_fd used pool of upto 100 pollers to monitor the r/w fds.  The
      approach makes sense in userspace back when the only available
      interfaces were poll(2) and select(2).  As each event monitor -
      trigger - handling iteration took O(n) where `n' is the number of
      watched fds, it makes sense to spread them to many pollers such that
      the `n' can be divided by the number of pollers.  However, this
      doesn't make any sense in kernel because persistent edge triggered
      event monitoring is how the whole thing is implemented in the kernel
      in the first place.
      This patch converts trans_fd to use single poller which watches all
      the fds instead of the poll of pollers approach.  All the fds are
      registered for monitoring on creation and only the fds with pending
      events are scanned when something happens much like how epoll is
      This change makes trans_fd fd monitoring more efficient and simpler.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
  2. 16 Oct, 2008 3 commits
    • Alexey Dobriyan's avatar
      sysctl: simplify ->strategy · f221e726
      Alexey Dobriyan authored
      name and nlen parameters passed to ->strategy hook are unused, remove
      them.  In general ->strategy hook should know what it's doing, and don't
      do something tricky for which, say, pointer to original userspace array
      may be needed (name).
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
      Acked-by: David S. Miller <davem@davemloft.net> [ networking bits ]
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Matt Mackall <mpm@selenic.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Danny ter Haar's avatar
      fix random typos · 404d0ae2
      Danny ter Haar authored
      Signed-off-by: default avatarDanny ter Haar <dth@cistron.nl>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Avi Kivity <avi@qumranet.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Jason Baron's avatar
      driver core: basic infrastructure for per-module dynamic debug messages · 346e15be
      Jason Baron authored
      Base infrastructure to enable per-module debug messages.
      I've introduced CONFIG_DYNAMIC_PRINTK_DEBUG, which when enabled centralizes
      control of debugging statements on a per-module basis in one /proc file,
      currently, <debugfs>/dynamic_printk/modules. When, CONFIG_DYNAMIC_PRINTK_DEBUG,
      is not set, debugging statements can still be enabled as before, often by
      defining 'DEBUG' for the proper compilation unit. Thus, this patch set has no
      affect when CONFIG_DYNAMIC_PRINTK_DEBUG is not set.
      The infrastructure currently ties into all pr_debug() and dev_dbg() calls. That
      is, if CONFIG_DYNAMIC_PRINTK_DEBUG is set, all pr_debug() and dev_dbg() calls
      can be dynamically enabled/disabled on a per-module basis.
      Future plans include extending this functionality to subsystems, that define 
      their own debug levels and flags.
      Dynamic debugging is controlled by the debugfs file, 
      <debugfs>/dynamic_printk/modules. This file contains a list of the modules that
      can be enabled. The format of the file is as follows:
      	<module_name> <enabled=0/1>
      	<module_name> : Name of the module in which the debug call resides
      	<enabled=0/1> : whether the messages are enabled or not
      For example:
      	snd_hda_intel enabled=0
      	fixup enabled=1
      	driver enabled=0
      Enable a module:
      	$echo "set enabled=1 <module_name>" > dynamic_printk/modules
      Disable a module:
      	$echo "set enabled=0 <module_name>" > dynamic_printk/modules
      Enable all modules:
      	$echo "set enabled=1 all" > dynamic_printk/modules
      Disable all modules:
      	$echo "set enabled=0 all" > dynamic_printk/modules
      Finally, passing "dynamic_printk" at the command line enables
      debugging for all modules. This mode can be turned off via the above
      disable command.
      [gkh: minor cleanups and tweaks to make the build work quietly]
      Signed-off-by: default avatarJason Baron <jbaron@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
  3. 15 Oct, 2008 3 commits
  4. 14 Oct, 2008 17 commits
  5. 13 Oct, 2008 6 commits
  6. 12 Oct, 2008 3 commits
  7. 11 Oct, 2008 2 commits
  8. 10 Oct, 2008 2 commits