1. 05 3月, 2008 11 次提交
  2. 04 3月, 2008 8 次提交
  3. 03 3月, 2008 1 次提交
    • A
      KVM: Make the supported cpuid list a host property rather than a vm property · 674eea0f
      Avi Kivity 提交于
      One of the use cases for the supported cpuid list is to create a "greatest
      common denominator" of cpu capabilities in a server farm.  As such, it is
      useful to be able to get the list without creating a virtual machine first.
      
      Since the code does not depend on the vm in any way, all that is needed is
      to move it to the device ioctl handler.  The capability identifier is also
      changed so that binaries made against -rc1 will fail gracefully.
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      674eea0f
  4. 01 3月, 2008 3 次提交
  5. 28 2月, 2008 1 次提交
  6. 27 2月, 2008 1 次提交
  7. 26 2月, 2008 3 次提交
  8. 25 2月, 2008 3 次提交
  9. 24 2月, 2008 9 次提交
    • T
      libata: automatically use DMADIR if drive/bridge requires it · 91163006
      Tejun Heo 提交于
      Back in 2.6.17-rc2, a libata module parameter was added for atapi_dmadir.
      
      That's nice, but most SATA devices which need it will tell us about it
      in their IDENTIFY PACKET response, as bit-15 of word-62 of the
      returned data (as per ATA7, ATA8 specifications).
      
      So for those which specify it, we should automatically use the DMADIR bit.
      Otherwise, disc writing will fail by default on many SATA-ATAPI drives.
      
      This patch adds ATA_DFLAG_DMADIR and make ata_dev_configure() set it
      if atapi_dmadir is set or identify data indicates DMADIR is necessary.
      atapi_xlat() is converted to check ATA_DFLAG_DMADIR before setting
      DMADIR.
      
      Original patch is from Mark Lord.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Mark Lord <mlord@pobox.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      91163006
    • D
      [NET]: Restore sanity wrt. print_mac(). · 55b01e86
      David S. Miller 提交于
      MAC_FMT had only one user and we tried to get rid of
      that, but this created more problems than it solved.
      
      As a result, this reverts three commits:
      
      235365f3 ("net/8021q/vlan_dev.c: Use
      print_mac."), fea5fa87 ("[NET]: Remove
      MAC_FMT"), and 8f789c48 ("[NET]:
      Elminate spurious print_mac() calls.")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      55b01e86
    • L
      cgroup: clean up cgroup.h · ffd2d883
      Li Zefan 提交于
      - replace old name 'cont' with 'cgrp' (Paul Menage did this cleanup for
        cgroup.c in commit bd89aabc)
      - remove a duplicate declaration of cgroup_path()
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      Acked-by: NPaul Menage <menage@google.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ffd2d883
    • L
      cgroup: fix comments · a043e3b2
      Li Zefan 提交于
      fix:
      - comments about need_forkexit_callback
      - comments about release agent
      - typo and comment style, etc.
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      Acked-by: NPaul Menage <menage@google.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a043e3b2
    • T
      futex: runtime enable pi and robust functionality · a0c1e907
      Thomas Gleixner 提交于
      Not all architectures implement futex_atomic_cmpxchg_inatomic().  The default
      implementation returns -ENOSYS, which is currently not handled inside of the
      futex guts.
      
      Futex PI calls and robust list exits with a held futex result in an endless
      loop in the futex code on architectures which have no support.
      
      Fixing up every place where futex_atomic_cmpxchg_inatomic() is called would
      add a fair amount of extra if/else constructs to the already complex code.  It
      is also not possible to disable the robust feature before user space tries to
      register robust lists.
      
      Compile time disabling is not a good idea either, as there are already
      architectures with runtime detection of futex_atomic_cmpxchg_inatomic support.
      
      Detect the functionality at runtime instead by calling
      cmpxchg_futex_value_locked() with a NULL pointer from the futex initialization
      code.  This is guaranteed to fail, but the call of
      futex_atomic_cmpxchg_inatomic() happens with pagefaults disabled.
      
      On architectures, which use the asm-generic implementation or have a runtime
      CPU feature detection, a -ENOSYS return value disables the PI/robust features.
      
      On architectures with a working implementation the call returns -EFAULT and
      the PI/robust features are enabled.
      
      The relevant syscalls return -ENOSYS and the robust list exit code is blocked,
      when the detection fails.
      
      Fixes http://lkml.org/lkml/2008/2/11/149
      Originally reported by: Lennart Buytenhek
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Riku Voipio <riku.voipio@movial.fi>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a0c1e907
    • C
      efs: move headers out of include/linux/ · 45254b4f
      Christoph Hellwig 提交于
      Merge include/linux/efs_fs{_i,_dir}.h into fs/efs/efs.h.  efs_vh.h remains
      there because this is the IRIX volume header and shouldn't really be
      handled by efs but by the partitioning code.  efs_sb.h remains there for
      now because it's exported to userspace.  Of course this wrong and aboot
      should have a copy of it's own, but I'll leave that to a separate patch to
      avoid any contention.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      45254b4f
    • D
      NOMMU: is_vmalloc_addr() won't compile if !MMU · 8ca3ed87
      David Howells 提交于
      Make is_vmalloc_addr() contingent on CONFIG_MMU=y, as it won't compile
      in !MMU mode.
      
      [ Bug introduced in commit 9e2779fa:
        "is_vmalloc_addr(): Check if an address is within the vmalloc
        boundaries" ].
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Cc: Greg Ungerer <gerg@snapgear.com>
      Cc: Christoph Lameter <clameter@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8ca3ed87
    • D
      sparc: fix build · eaeb1688
      David Rientjes 提交于
      Fix build failure on sparc:
      
      	In file included from include/linux/mm.h:39,
      	                from include/linux/memcontrol.h:24,
      	                from include/linux/swap.h:8,
      	                from include/linux/suspend.h:7,
      	                from init/do_mounts.c:6:
      	include/asm/pgtable.h:344: warning: parameter names (without
      		types) in function declaration
      	include/asm/pgtable.h:345: warning: parameter names (without
      		types) in function declaration
      	include/asm/pgtable.h:346: error: expected '=', ',', ';', 'asm' or
      		'__attribute__' before '___f___swp_entry'
      
      viro sayeth:
      
        I've run allmodconfig builds on a bunch of target, FWIW (essentially the
        same patch).  Note that these includes are recent addition caused by added
        inline function that had since then become a define.  So while I agree with
        your comments in general, in _this_ case it's pretty safe.
      
        The commit that had done it is 3062fc67
        ("memcontrol: move mm_cgroup to header file") and the switch to #define
        is in commit 60c12b12 ("memcontrol: add
        vm_match_cgroup()") (BTW, that probably warranted mentioning in the
        changelog of the latter).
      
      Cc: Adrian Bunk <bunk@kernel.org>
      Cc: Robert Reif <reif@earthlink.net>
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      eaeb1688
    • R
      PM: Introduce PM_EVENT_HIBERNATE callback state · 3a2d5b70
      Rafael J. Wysocki 提交于
      During the last step of hibernation in the "platform" mode (with the
      help of ACPI) we use the suspend code, including the devices'
      ->suspend() methods, to prepare the system for entering the ACPI S4
      system sleep state.
      
      But at least for some devices the operations performed by the
      ->suspend() callback in that case must be different from its operations
      during regular suspend.
      
      For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
      pass it to the device drivers' ->suspend() methods during the last phase
      of hibernation, so that they can distinguish this case and handle it as
      appropriate.  Modify the drivers that handle PM_EVENT_SUSPEND in a
      special way and need to handle PM_EVENT_HIBERNATE in the same way.
      
      These changes are necessary to fix a hibernation regression related
      to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Tested-by: NJeff Chua <jeff.chua.linux@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3a2d5b70