1. 18 11月, 2009 2 次提交
  2. 16 11月, 2009 11 次提交
  3. 15 11月, 2009 8 次提交
  4. 14 11月, 2009 5 次提交
  5. 13 11月, 2009 12 次提交
  6. 12 11月, 2009 2 次提交
    • T
      percpu: restructure pcpu_extend_area_map() to fix bugs and improve readability · 833af842
      Tejun Heo 提交于
      pcpu_extend_area_map() had the following two bugs.
      
      * It should return 1 if pcpu_lock was dropped and reacquired but it
        returned 0.  This could lead to oops if free_percpu() races with
        area map extension.
      
      * pcpu_mem_free() was called under pcpu_lock.  pcpu_mem_free() might
        end up calling vfree() which isn't IRQ safe.  This could lead to
        deadlock through lock order inversion via IRQ.
      
      In addition, Linus pointed out that the temporary lock dropping and
      subtle three-way return value of pcpu_extend_area_map() was very ugly
      and suggested to split the function into two - pcpu_need_to_extend()
      and pcpu_extend_area_map().
      
      This patch restructures pcpu_extend_area_map() as suggested and fixes
      the two bugs.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      833af842
    • M
      __generic_block_fiemap(): fix for files bigger than 4GB · e04b5ef8
      Mike Hommey 提交于
      Because of an integer overflow on start_blk, various kind of wrong results
      would be returned by the generic_block_fiemap() handler, such as no
      extents when there is a 4GB+ hole at the beginning of the file, or wrong
      fe_logical when an extent starts after the first 4GB.
      Signed-off-by: NMike Hommey <mh@glandium.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Theodore Ts'o <tytso@mit.edu>
      Cc: Eric Sandeen <sandeen@sgi.com>
      Cc: Josef Bacik <jbacik@redhat.com>
      Cc: Mark Fasheh <mfasheh@suse.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e04b5ef8