1. 23 3月, 2011 2 次提交
  2. 15 3月, 2011 2 次提交
  3. 28 10月, 2010 2 次提交
  4. 28 9月, 2010 1 次提交
    • S
      net/9p: Mount only matching virtio channels · 0b20406c
      Sven Eckelmann 提交于
      p9_virtio_create will only compare the the channel's tag characters
      against the device name till the end of the channel's tag but not till
      the end of the device name. This means that if a user defines channels
      with the tags foo and foobar then he would mount foo when he requested
      foonot and may mount foo when he requested foobar.
      
      Thus it is necessary to check both string lengths against each other in
      case of a successful partial string match.
      Signed-off-by: NSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0b20406c
  5. 19 5月, 2010 1 次提交
  6. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  7. 13 3月, 2010 2 次提交
  8. 06 3月, 2010 3 次提交
  9. 09 2月, 2010 2 次提交
    • A
      9p: Fix the kernel crash on a failed mount · fb786100
      Aneesh Kumar K.V 提交于
      The patch fix the crash repoted below
      
      [   15.149907] BUG: unable to handle kernel NULL pointer dereference at 00000001
      [   15.150806] IP: [<c140b886>] p9_virtio_close+0x18/0x24
      .....
      ....
      [   15.150806] Call Trace:
      [   15.150806]  [<c1408e78>] ? p9_client_destroy+0x3f/0x163
      [   15.150806]  [<c1409342>] ? p9_client_create+0x25f/0x270
      [   15.150806]  [<c1063b72>] ? trace_hardirqs_on+0xb/0xd
      [   15.150806]  [<c11ed4e8>] ? match_token+0x64/0x164
      [   15.150806]  [<c1175e8d>] ? v9fs_session_init+0x2f1/0x3c8
      [   15.150806]  [<c109cfc9>] ? kmem_cache_alloc+0x98/0xb8
      [   15.150806]  [<c1063b72>] ? trace_hardirqs_on+0xb/0xd
      [   15.150806]  [<c1173dd1>] ? v9fs_get_sb+0x47/0x1e8
      [   15.150806]  [<c1173dea>] ? v9fs_get_sb+0x60/0x1e8
      [   15.150806]  [<c10a2e77>] ? vfs_kern_mount+0x81/0x11a
      [   15.150806]  [<c10a2f55>] ? do_kern_mount+0x33/0xbe
      [   15.150806]  [<c10b40b9>] ? do_mount+0x654/0x6b3
      [   15.150806]  [<c1038949>] ? do_page_fault+0x0/0x284
      [   15.150806]  [<c10b28ec>] ? copy_mount_options+0x73/0xd2
      [   15.150806]  [<c10b4179>] ? sys_mount+0x61/0x94
      [   15.150806]  [<c14284e9>] ? syscall_call+0x7/0xb
      ....
      [   15.203562] ---[ end trace 1dd159357709eb4b ]---
      [
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      fb786100
    • E
      net/9p: fix virtio transport to correctly update status on connect · 562ada61
      Eric Van Hensbergen 提交于
      The 9p virtio transport was not updating its connection status correctly
      preventing it from being able to mount the server.
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      562ada61
  10. 22 10月, 2009 1 次提交
    • C
      virtio: let header files include virtio_ids.h · e95646c3
      Christian Borntraeger 提交于
      Rusty,
      
      commit 3ca4f5ca
          virtio: add virtio IDs file
      moved all device IDs into a single file. While the change itself is
      a very good one, it can break userspace applications. For example
      if a userspace tool wanted to get the ID of virtio_net it used to
      include virtio_net.h. This does no longer work, since virtio_net.h
      does not include virtio_ids.h.
      This patch moves all "#include <linux/virtio_ids.h>" from the C
      files into the header files, making the header files compatible with
      the old ones.
      
      In addition, this patch exports virtio_ids.h to userspace.
      
      CC: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      e95646c3
  11. 23 9月, 2009 3 次提交
  12. 18 8月, 2009 1 次提交
  13. 12 6月, 2009 2 次提交
  14. 06 4月, 2009 1 次提交
  15. 18 10月, 2008 4 次提交
  16. 25 9月, 2008 1 次提交
    • T
      9p: implement proper trans module refcounting and unregistration · 72029fe8
      Tejun Heo 提交于
      9p trans modules aren't refcounted nor were they unregistered
      properly.  Fix it.
      
      * Add 9p_trans_module->owner and reference the module on each trans
        instance creation and put it on destruction.
      
      * Protect v9fs_trans_list with a spinlock.  This isn't strictly
        necessary as the list is manipulated only during module loading /
        unloading but it's a good idea to make the API safe.
      
      * Unregister trans modules when the corresponding module is being
        unloaded.
      
      * While at it, kill unnecessary EXPORT_SYMBOL on p9_trans_fd_init().
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      72029fe8
  17. 15 5月, 2008 3 次提交
  18. 20 2月, 2008 1 次提交
  19. 18 2月, 2008 1 次提交
  20. 07 2月, 2008 4 次提交
  21. 04 2月, 2008 2 次提交
    • R
      virtio: explicit enable_cb/disable_cb rather than callback return. · 18445c4d
      Rusty Russell 提交于
      It seems that virtio_net wants to disable callbacks (interrupts) before
      calling netif_rx_schedule(), so we can't use the return value to do so.
      
      Rename "restart" to "cb_enable" and introduce "cb_disable" hook: callback
      now returns void, rather than a boolean.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      18445c4d
    • R
      virtio: simplify config mechanism. · a586d4f6
      Rusty Russell 提交于
      Previously we used a type/len pair within the config space, but this
      seems overkill.  We now simply define a structure which represents the
      layout in the config space: the config space can now only be extended
      at the end.
      
      The main driver-visible changes:
      1) We indicate what fields are present with an explicit feature bit.
      2) Virtqueues are explicitly numbered, and not in the config space.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      a586d4f6