1. 11 Nov, 2009 6 commits
  2. 10 Nov, 2009 2 commits
  3. 09 Nov, 2009 27 commits
  4. 08 Nov, 2009 5 commits
    • Theodore Ts'o's avatar
      ext4: partial revert to fix double brelse WARNING() · 1e424a34
      Theodore Ts'o authored
      This is a partial revert of commit 6487a9d3 (only the changes made to
      fs/ext4/namei.c), since it is causing the following brelse()
      double-free warning when running fsstress on a file system with 1k
      blocksize and we run into a block allocation failure while converting
      a single-block directory to a multi-block hash-tree indexed directory.
      
      WARNING: at fs/buffer.c:1197 __brelse+0x2e/0x33()
      Hardware name: 
      VFS: brelse: Trying to free free buffer
      Modules linked in:
      Pid: 2226, comm: jbd2/sdd-8 Not tainted 2.6.32-rc6-00577-g0003f55 #101
      Call Trace:
       [<c01587fb>] warn_slowpath_common+0x65/0x95
       [<c0158869>] warn_slowpath_fmt+0x29/0x2c
       [<c021168e>] __brelse+0x2e/0x33
       [<c0288a9f>] jbd2_journal_refile_buffer+0x67/0x6c
       [<c028a9ed>] jbd2_journal_commit_transaction+0x319/0x14d8
       [<c0164d73>] ? try_to_del_timer_sync+0x58/0x60
       [<c0175bcc>] ? sched_clock_cpu+0x12a/0x13e
       [<c017f6b4>] ? trace_hardirqs_off+0xb/0xd
       [<c0175c1f>] ? cpu_clock+0x3f/0x5b
       [<c017f6ec>] ? lock_release_holdtime+0x36/0x137
       [<c0664ad0>] ? _spin_unlock_irqrestore+0x44/0x51
       [<c0180af3>] ? trace_hardirqs_on_caller+0x103/0x124
       [<c0180b1f>] ? trace_hardirqs_on+0xb/0xd
       [<c0164d73>] ? try_to_del_timer_sync+0x58/0x60
       [<c0290d1c>] kjournald2+0x11a/0x310
       [<c017118e>] ? autoremove_wake_function+0x0/0x38
       [<c0290c02>] ? kjournald2+0x0/0x310
       [<c0170ee6>] kthread+0x66/0x6b
       [<c0170e80>] ? kthread+0x0/0x6b
       [<c01251b3>] kernel_thread_helper+0x7/0x10
      ---[ end trace 5579351b86af61e3 ]---
      
      Commit 6487a9d3 was an attempt some buffer head leaks in an ENOSPC
      error path, but in some cases it actually results in an excess ENOSPC,
      as shown above.  Fixing this means cleaning up who is responsible for
      releasing the buffer heads from the callee to the caller of
      add_dirent_to_buf().
      
      Since that's a relatively complex change, and we're late in the rcX
      development cycle, I'm reverting this now, and holding back a more
      complete fix until after 2.6.32 ships.  We've lived with this
      buffer_head leak on ENOSPC in ext3 and ext4 for a very long time; a
      few more months won't kill us.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      Cc: Curt Wohlgemuth <curtw@google.com>
      1e424a34
    • Cyrill Gorcunov's avatar
      sched: Use root_task_group_empty only with FAIR_GROUP_SCHED · e9036b36
      Cyrill Gorcunov authored
      root_task_group_empty is used only with FAIR_GROUP_SCHED
      so if we use other scheduler options we get:
      
        kernel/sched.c:314: warning: 'root_task_group_empty' defined but not used
      
      So move CONFIG_FAIR_GROUP_SCHED up that it covers
      root_task_group_empty().
      Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      LKML-Reference: <20091026192414.GB5321@lenovo>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      e9036b36
    • Xiaotian Feng's avatar
      x86: Fix error return sequence in __ioremap_caller() · de2a47cf
      Xiaotian Feng authored
      kernel missed to free memtype if get_vm_area_caller failed in
      __ioremap_caller.
      
      This patch introduces error path to fix this and cleans up the
      repetitive error return sequences that contributed to the
      creation of the bug.
      Signed-off-by: default avatarXiaotian Feng <dfeng@redhat.com>
      Acked-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      LKML-Reference: <1257389031-20429-1-git-send-email-dfeng@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      de2a47cf
    • Randy Dunlap's avatar
      sched: Fix kernel-doc function parameter name · 968c8645
      Randy Dunlap authored
      Fix variable name in sched.c kernel-doc notation.
      
      Fixes this DocBook warning:
      
       Warning(kernel/sched.c:2008): No description found for parameter
       'p' Warning(kernel/sched.c:2008): Excess function parameter 'k'
       description in 'kthread_bind'
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      LKML-Reference: <4AF4B1BC.8020604@oracle.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      968c8645
    • Ryusuke Konishi's avatar
      nilfs2: fix missing cleanup of gc cache on error cases · c083234f
      Ryusuke Konishi authored
      This fixes an -rc1 regression brought by the commit:
      1cf58fa8 ("nilfs2: shorten freeze
      period due to GC in write operation v3").
      
      Although the patch moved out a function call of
      nilfs_ioctl_move_blocks() to nilfs_ioctl_clean_segments() from
      nilfs_ioctl_prepare_clean_segments(), it didn't move corresponding
      cleanup job needed for the error case.
      
      This will move the missing cleanup job to the destination function.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Acked-by: default avatarJiro SEKIBA <jir@unicus.jp>
      c083234f