1. 24 7月, 2007 1 次提交
  2. 18 7月, 2007 1 次提交
    • N
      md: change bitmap_unplug and others to void functions · 4ad13663
      NeilBrown 提交于
      bitmap_unplug only ever returns 0, so it may as well be void.  Two callers try
      to print a message if it returns non-zero, but that message is already printed
      by bitmap_file_kick.
      
      write_page returns an error which is not consistently checked.  It always
      causes BITMAP_WRITE_ERROR to be set on an error, and that can more
      conveniently be checked.
      
      When the return of write_page is checked, an error causes bitmap_file_kick to
      be called - so move that call into write_page - and protect against recursive
      calls into bitmap_file_kick.
      
      bitmap_update_sb returns an error that is never checked.
      
      So make these 'void' and be consistent about checking the bit.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4ad13663
  3. 17 6月, 2007 1 次提交
  4. 02 3月, 2007 1 次提交
    • N
      [PATCH] md: fix raid10 recovery problem. · 64a742bc
      NeilBrown 提交于
      There are two errors that can lead to recovery problems with raid10
      when used in 'far' more (not the default).
      
      Due to a '>' instead of '>=' the wrong block is located which would result in
      garbage being written to some random location, quite possible outside the
      range of the device, causing the newly reconstructed device to fail.
      
      The device size calculation had some rounding errors (it didn't round when it
      should) and so recovery would go a few blocks too far which would again cause
      a write to a random block address and probably a device error.
      
      The code for working with device sizes was fairly confused and spread out, so
      this has been tided up a bit.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      64a742bc
  5. 12 1月, 2007 1 次提交
  6. 14 12月, 2006 1 次提交
  7. 29 10月, 2006 1 次提交
  8. 22 10月, 2006 1 次提交
  9. 03 10月, 2006 5 次提交
  10. 11 7月, 2006 1 次提交
  11. 27 6月, 2006 4 次提交
  12. 02 5月, 2006 2 次提交
  13. 02 4月, 2006 1 次提交
  14. 04 2月, 2006 1 次提交
  15. 15 1月, 2006 1 次提交
  16. 07 1月, 2006 14 次提交
  17. 29 11月, 2005 1 次提交
    • N
      [PATCH] md: improve read speed to raid10 arrays using 'far copies' · 22dfdf52
      NeilBrown 提交于
      raid10 has two different layouts.  One uses near-copies (so multiple
      copies of a block are at the same or similar offsets of different
      devices) and the other uses far-copies (so multiple copies of a block
      are stored a greatly different offsets on different devices).  The point
      of far-copies is that it allows the first section (normally first half)
      to be layed out in normal raid0 style, and thus provide raid0 sequential
      read performance.
      
      Unfortunately, the read balancing in raid10 makes some poor decisions
      for far-copies arrays and you don't get the desired performance.  So
      turn off that bad bit of read_balance for far-copies arrays.
      
      With this patch, read speed of an 'f2' array is comparable with a raid0
      with the same number of devices, though write speed is ofcourse still
      very slow.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      22dfdf52
  18. 09 11月, 2005 2 次提交