1. 15 9月, 2011 6 次提交
    • D
      numa: fix NUMA compile error when sysfs and procfs are disabled · 0d6617c7
      David Rientjes 提交于
      The vmstat_text array is only defined for CONFIG_SYSFS or CONFIG_PROC_FS,
      yet it is referenced for per-node vmstat with CONFIG_NUMA:
      
      	drivers/built-in.o: In function `node_read_vmstat':
      	node.c:(.text+0x1106df): undefined reference to `vmstat_text'
      
      Introduced in commit fa25c503 ("mm: per-node vmstat: show proper
      vmstats").
      
      Define the array for CONFIG_NUMA as well.
      
      [akpm@linux-foundation.org: remove unneeded ifdefs]
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Reported-by: NCong Wang <amwang@redhat.com>
      Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0d6617c7
    • K
      mm/mempolicy.c: make copy_from_user() provably correct · 2bbff6c7
      KAMEZAWA Hiroyuki 提交于
      When compiling mm/mempolicy.c with struct user copy checks the following
      warning is shown:
      
        In file included from arch/x86/include/asm/uaccess.h:572,
                         from include/linux/uaccess.h:5,
                         from include/linux/highmem.h:7,
                         from include/linux/pagemap.h:10,
                         from include/linux/mempolicy.h:70,
                         from mm/mempolicy.c:68:
        In function `copy_from_user',
            inlined from `compat_sys_get_mempolicy' at mm/mempolicy.c:1415:
        arch/x86/include/asm/uaccess_64.h:64: warning: call to `copy_from_user_overflow' declared with attribute warning: copy_from_user() buffer size is not provably correct
          LD      mm/built-in.o
      
      Fix this by passing correct buffer size value.
      Signed-off-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2bbff6c7
    • C
      mm/mempolicy.c: fix pgoff in mbind vma merge · 8aacc9f5
      Caspar Zhang 提交于
      commit 9d8cebd4 ("mm: fix mbind vma merge problem") didn't really
      fix the mbind vma merge problem due to wrong pgoff value passing to
      vma_merge(), which made vma_merge() always return NULL.
      
      Before the patch applied, we are getting a result like:
      
        addr = 0x7fa58f00c000
        [snip]
        7fa58f00c000-7fa58f00d000 rw-p 00000000 00:00 0
        7fa58f00d000-7fa58f00e000 rw-p 00000000 00:00 0
        7fa58f00e000-7fa58f00f000 rw-p 00000000 00:00 0
      
      here 7fa58f00c000->7fa58f00f000 we get 3 VMAs which are expected to be
      merged described as described in commit 9d8cebd4.
      
      Re-testing the patched kernel with the reproducer provided in commit
      9d8cebd4, we get the correct result:
      
        addr = 0x7ffa5aaa2000
        [snip]
        7ffa5aaa2000-7ffa5aaa6000 rw-p 00000000 00:00 0
        7fffd556f000-7fffd5584000 rw-p 00000000 00:00 0                          [stack]
      Signed-off-by: NCaspar Zhang <caspar@casparzhang.com>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Christoph Lameter <cl@linux-foundation.org>
      Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
      Cc: Minchan Kim <minchan.kim@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8aacc9f5
    • L
      Merge git://bedivere.hansenpartnership.com/git/scsi-rc-fixes-2.6 · bcd438be
      Linus Torvalds 提交于
      * git://bedivere.hansenpartnership.com/git/scsi-rc-fixes-2.6: (25 commits)
        [SCSI] bnx2i: Fixed the endian on TTT for NOP out transmission
        [SCSI] libfc: fix referencing to fc_fcp_pkt from the frame pointer via fr_fsp()
        [SCSI] libfc: block SCSI eh thread for blocked rports
        [SCSI] libfc: fix fc_eh_host_reset
        [SCSI] fcoe: Fix deadlock between fip's recv_work and rtnl
        [SCSI] qla2xxx: Update version number to 8.03.07.07-k.
        [SCSI] qla2xxx: Set the task attributes after memsetting fcp cmnd.
        [SCSI] qla2xxx: Correct inadvertent loop state transitions during port-update handling.
        [SCSI] qla2xxx: Save and restore irq in the response queue interrupt handler.
        [SCSI] qla2xxx: Double check for command completion if abort mailbox command fails.
        [SCSI] qla2xxx: Acquire hardware lock while manipulating dsd list.
        [SCSI] qla2xxx: Fix qla24xx revision check while enabling interrupts.
        [SCSI] qla2xxx: T10 DIF - Fix incorrect error reporting.
        [SCSI] qla2xxx: T10 DIF - Handle uninitalized sectors.
        [SCSI] hpsa: fix physical device lun and target numbering problem
        [SCSI] hpsa: fix problem that OBDR devices are not detected
        [SCSI] isci: add version number
        [SCSI] isci: fix event-get pointer increment
        [SCSI] isci: dynamic interrupt coalescing
        [SCSI] isci: Leave requests alone if already terminating.
        ...
      bcd438be
    • L
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · 53d872e9
      Linus Torvalds 提交于
      * 'for-linus' of git://oss.sgi.com/xfs/xfs:
        xfs: fix a use after free in xfs_end_io_direct_write
      53d872e9
    • A
      restore pinning the victim dentry in vfs_rmdir()/vfs_rename_dir() · 1d2ef590
      Al Viro 提交于
      We used to get the victim pinned by dentry_unhash() prior to commit
      64252c75 ("vfs: remove dget() from dentry_unhash()") and ->rmdir()
      and ->rename() instances relied on that; most of them don't care, but
      ones that used d_delete() themselves do.  As the result, we are getting
      rmdir() oopses on NFS now.
      
      Just grab the reference before locking the victim and drop it explicitly
      after unlocking, same as vfs_rename_other() does.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Tested-by: NSimon Kirby <sim@hostway.ca>
      Cc: stable@kernel.org (3.0.x)
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1d2ef590
  2. 14 9月, 2011 3 次提交
  3. 13 9月, 2011 11 次提交
  4. 12 9月, 2011 3 次提交
  5. 11 9月, 2011 17 次提交