1. 12 5月, 2008 4 次提交
    • S
      [CIFS] don't allow demultiplex thread to exit until kthread_stop is called · e691b9d1
      Steve French 提交于
      cifs_demultiplex_thread can exit under several conditions:
      
      1) if it's signaled
      2) if there's a problem with session setup
      3) if kthread_stop is called on it
      
      The first two are problems. If kthread_stop is called on the thread,
      there is no guarantee that it will still be up. We need to have the
      thread stay up until kthread_stop is called on it.
      
      One option would be to not even try to tear things down until after
      kthread_stop is called. However, in the case where there is a problem
      setting up the session, there's no real reason to try continuing the
      loop.
      
      This patch allows the thread to clean up and prepare for exit under all
      three conditions, but it has the thread go to sleep until kthread_stop
      is called. This allows us to simplify the shutdown code somewhat since
      we can be reasonably sure that the thread won't exit after being
      signaled but before kthread_stop is called.
      
      It also removes the places where the thread itself set the tsk variable
      since it appeared that it could have a potential race where the thread
      might never be shut down.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Acked-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      e691b9d1
    • J
      [CIFS] when not using unix extensions, check for and set ATTR_READONLY on create and mkdir · 67750fb9
      Jeff Layton 提交于
      When creating a directory on a CIFS share without POSIX extensions,
      and the given mode has no write bits set, set the ATTR_READONLY bit.
      
      When creating a file, set ATTR_READONLY if the create mode has no write
      bits set and we're not using unix extensions.
      
      There are some comments about this being problematic due to the VFS
      splitting creates into 2 parts. I'm not sure what that's actually
      talking about, but I'm assuming that it has something to do with how
      mknod is implemented. In the simple case where we have no unix
      extensions and we're just creating a regular file, there's no reason
      we can't set ATTR_READONLY.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      67750fb9
    • J
      [CIFS] add local struct inode pointer to cifs_setattr · 02eadeff
      Jeff Layton 提交于
      Clean up cifs_setattr a bit by adding a local inode pointer, and
      changing all of the direntry->d_inode references to it. This also adds a
      bit of micro-optimization. d_inode shouldn't change over the life of
      this function, so we only need to dereference it once.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      02eadeff
    • C
      [CIFS] cifs_find_tcp_session cleanup · 1b20d672
      Cyrill Gorcunov 提交于
      This patch cleans up cifs_find_tcp_session so it become
      less indented. Also the error of skipping IPv6 matched
      addresses fixed.
      Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      1b20d672
  2. 11 5月, 2008 13 次提交
    • L
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · 5bb7ff79
      Linus Torvalds 提交于
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        [ARM] 5033/1: Unbreak corgi_ssp by registering ssp drivers earlier.
        [ARM] Orion: clean up addr-map.c after window setting code purge
        [ARM] Orion: pass proper t_clk into mv643xx_eth
        [ARM] Orion: use mv643xx_eth driver mbus window handling
        [ARM] pxa: Fix RCSR handling
        [ARM] lubbock: fix compilation
        [ARM] 5032/1: Added cpufreq support for pxa27x CPU
        [ARM] 5031/1: Indentation correction in cpu-pxa.c.
        [ARM] 5028/1: pxafb: fix broken "backward compatibility way" in framebuffer
        [ARM] 4882/2: Correction for S3C2410 clkout generation
        [ARM] 5027/1: Fixed random memory corruption on pxa suspend cycle.
        [ARM] 5024/1: Fix some minor clk issues in the MMCI PL18x driver
        [ARM] 5023/1: Fix broken gpio interrupts on ep93xx
        ns9xxx: fix sparse warning
        ns9xxx: check for irq lockups
        ns9xxx: fix handle_prio_irq to unmask irqs with lower priority
      5bb7ff79
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86 · 3e1b83ab
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86:
        x86: rdc: leds build/config fix
        x86: sysfs cpu?/topology is empty in 2.6.25 (32-bit Intel system)
        x86: revert commit 709f744f ("x86: bitops asm constraint fixes")
        x86: restrict keyboard io ports reservation to make ipmi driver work
        x86: fix fpu restore from sig return
        x86: remove spew print out about bus to node mapping
        x86: revert printk format warning change which is for linux-next
        x86: cleanup PAT cpu validation
        x86: geode: define geode_has_vsa2() even if CONFIG_MGEODE_LX is not set
        x86: GEODE: cache results from geode_has_vsa2() and uninline
        x86: revert geode config dependency
      3e1b83ab
    • L
      BKL: revert back to the old spinlock implementation · 8e3e076c
      Linus Torvalds 提交于
      The generic semaphore rewrite had a huge performance regression on AIM7
      (and potentially other BKL-heavy benchmarks) because the generic
      semaphores had been rewritten to be simple to understand and fair.  The
      latter, in particular, turns a semaphore-based BKL implementation into a
      mess of scheduling.
      
      The attempt to fix the performance regression failed miserably (see the
      previous commit 00b41ec2 'Revert
      "semaphore: fix"'), and so for now the simple and sane approach is to
      instead just go back to the old spinlock-based BKL implementation that
      never had any issues like this.
      
      This patch also has the advantage of being reported to fix the
      regression completely according to Yanmin Zhang, unlike the semaphore
      hack which still left a couple percentage point regression.
      
      As a spinlock, the BKL obviously has the potential to be a latency
      issue, but it's not really any different from any other spinlock in that
      respect.  We do want to get rid of the BKL asap, but that has been the
      plan for several years.
      
      These days, the biggest users are in the tty layer (open/release in
      particular) and Alan holds out some hope:
      
        "tty release is probably a few months away from getting cured - I'm
         afraid it will almost certainly be the very last user of the BKL in
         tty to get fixed as it depends on everything else being sanely locked."
      
      so while we're not there yet, we do have a plan of action.
      Tested-by: NYanmin Zhang <yanmin_zhang@linux.intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: Alexander Viro <viro@ftp.linux.org.uk>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8e3e076c
    • L
      Revert "semaphore: fix" · 00b41ec2
      Linus Torvalds 提交于
      This reverts commit bf726eab, as it has
      been reported to cause a regression with processes stuck in __down(),
      apparently because some missing wakeup.
      
      Quoth Sven Wegener:
       "I'm currently investigating a regression that has showed up with my
        last git pull yesterday.  Bisecting the commits showed bf726e
        "semaphore: fix" to be the culprit, reverting it fixed the issue.
      
        Symptoms: During heavy filesystem usage (e.g.  a kernel compile) I get
        several compiler processes in uninterruptible sleep, blocking all i/o
        on the filesystem.  System is an Intel Core 2 Quad running a 64bit
        kernel and userspace.  Filesystem is xfs on top of lvm.  See below for
        the output of sysrq-w."
      
      See
      
      	http://lkml.org/lkml/2008/5/10/45
      
      for full report.
      
      In the meantime, we can just fix the BKL performance regression by
      reverting back to the good old BKL spinlock implementation instead,
      since any sleeping lock will generally perform badly, especially if it
      tries to be fair.
      Reported-by: NSven Wegener <sven.wegener@stealer.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      00b41ec2
    • L
      Make <asm-x86/spinlock.h> use ACCESS_ONCE() · 39f004ba
      Linus Torvalds 提交于
      ..instead of cooking up its own uglier local version of it.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      39f004ba
    • L
      Move ACCESS_ONCE() to <linux/compiler.h> · 9c3cdc1f
      Linus Torvalds 提交于
      It actually makes much more sense there, and we do tend to need it for
      non-RCU usage too.  Moving it to <linux/compiler.h> will allow some
      other cases that have open-coded the same logic to use the same helper
      function that RCU has used.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9c3cdc1f
    • I
      x86: rdc: leds build/config fix · 82fd8667
      Ingo Molnar 提交于
      select NEW_LEDS for now until the Kconfig dependencies have been
      fixed.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      82fd8667
    • V
      x86: sysfs cpu?/topology is empty in 2.6.25 (32-bit Intel system) · 5c3a121d
      Vaidyanathan Srinivasan 提交于
      System topology on intel based system needs to be exported
      for non-numa case as well.
      
      All parts of asm-i386/topology.h has come under
      #ifdef CONFIG_NUMA after the merge to asm-x86/topology.h
      
      /sys/devices/system/cpu/cpu?/topology/* is populated based on
      ENABLE_TOPO_DEFINES
      
      The sysfs cpu topology is not being populated on my dual socket
      dual core xeon 5160 processor based (x86 32 bit) system.
      
      CONFIG_NUMA is not set in my case yet the topology is relevant
      and useful.
      
      irqbalance daemon application depends on topology to build the
      cpus and package list and it fails on Fedora9 beta since the
      sysfs topology was not being populated in the 2.6.25 kernel.
      
      I am not sure if it was intentional to not define ENABLE_TOPO_DEFINES
      for non-numa systems.
      
      This fix has been tested on the above mentioned dual core, dual socket
      system.
      Signed-off-by: NVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: stable@kernel.org
      5c3a121d
    • S
      x86: revert commit 709f744f ("x86: bitops asm constraint fixes") · eb2b4e68
      Simon Holm Thøgersen 提交于
      709f744f causes my computer to freeze during the start up of X and my
      login manger (GDM). It gets to the point where it has shown the default
      X mouse cursor logo (a big X / cross) and does not respond to anything
      from that point on.
      
      This worked fine before 709f744f, and it works fine with 709f744f
      reverted on top of Linus' current tree (f74d505b). The revert had
      conflicts, as far as I can tell due to white space changes. The diff I
      ended up with is below.
      
      It is 100% reproducible.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      eb2b4e68
    • H
      x86: restrict keyboard io ports reservation to make ipmi driver work · 9096bd7a
      Helge Wagner 提交于
      On some of our (single board computer) boards (x86) we are using an
      IPMI controller that uses I/O ports 0x62 and 0x66 for a KCS (keyboard
      controller style) IPMI system interface.
      
      Trying to load the openipmi driver fails, because the ports
      (0x62/0x66) are reserved for keyboard. keyboard reserves the full
      range 0x60-0x6F while it doesn't need to.
      
      Reserve only ports 0x60 and 0x64 for the legacy PS/2 i8042 keyboad
      controller instead of 0x60-0x6F to allow the openipmi driver to work.
      
      [ tglx: added 64bit fixup ]
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NH. Peter Anvin <hpa@zytor.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9096bd7a
    • S
      x86: fix fpu restore from sig return · fd3c3ed5
      Suresh Siddha 提交于
      If the task never used fpu, initialize the fpu before restoring the FP
      state from the signal handler context. This will allocate the fpu
      state, if the task never needed it before.
      Reported-and-bisected-by: NEric Sesterhenn <snakebyte@gmx.de>
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Tested-by: NEric Sesterhenn <snakebyte@gmx.de>
      Cc: Frederik Deweerdt <deweerdt@free.fr>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      fd3c3ed5
    • Y
      x86: remove spew print out about bus to node mapping · 06461539
      Yinghai Lu 提交于
      Jeff Garzik pointed out that this printout is not needed.
      Signed-off-by: NYinghai Lu <yhlu.kernel@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      06461539
    • T
      x86: revert printk format warning change which is for linux-next · 5ecddceb
      Thomas Gleixner 提交于
      commit 62179849
          x86: fix setup printk format warning
      
      is for linux-next and not for .26
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      5ecddceb
  3. 10 5月, 2008 3 次提交
    • R
    • D
      [ARM] 5033/1: Unbreak corgi_ssp by registering ssp drivers earlier. · 5bf6c6e3
      Dmitry Baryshkov 提交于
      A lot of stuff in spitz/akita/etc. depends on corgi_ssp to be initialised
      early. However corgi_ssp initialisation fails, because at that time pxa*-ssp
      devices don't have drivers. Move ssp earlier in the makefile so they are
      registered before corgi-ssp.
      
      Also move sleep/suspend and cpu-freq to more logical places
      Signed-off-by: NDmitry Baryshkov <dbaryshkov@gmail.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      5bf6c6e3
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6 · 3ed43c74
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (21 commits)
        Blackfin Serial Driver: abstract away DLAB differences into header
        Blackfin Serial Driver: macro away the IER differences between processors
        [Blackfin] arch: remove useless IRQ_SW_INT defines
        [Blackfin] arch: protect linux/usb/musb.h include until the driver gets mainlined
        [Blackfin] arch: protect linux/usb/isp1362.h include until the driver gets mainlined
        [Blackfin] arch: add EBIU supporting for BF54x EZKIT SMSC LAN911x/LAN921x families embedded ethernet driver
        [Blackfin] arch: Set spi flash partition on bf527 as like bf548.
        [Blackfin] arch: fix bug - Remove module will not free L1 memory used
        [Blackfin] arch: fix wrong header name in comment
        [Blackfin] arch: Fix BUG - spi flash on bf527 ezkit would fail at mount
        [Blackfin] arch: add twi_lcd and twi_keypad i2c board info to bf527-ezkit
        [Blackfin] arch: Add physmap partition for BF527-EZkit
        [Blackfin] arch: fix gdb testing regression
        [Blackfin] arch: disable single stepping when delivering a signal
        [Blackfin] arch: Delete unused (copied from m68k) entries in asm-offsets.c.
        [Blackfin] arch: In the double fault handler, set up the PT_RETI slot
        [Blackfin] arch: Support for CPU_FREQ and NOHZ
        [Blackfin] arch: Functional power management support: Add CPU and platform voltage scaling support
        [Blackfin] arch: fix bug -  breaking the atomic sections code.
        [Blackfin] arch: Equalize include files: Add VR_CTL masks
        ...
      3ed43c74
  4. 09 5月, 2008 20 次提交
新手
引导
客服 返回
顶部