1. 17 6月, 2007 1 次提交
  2. 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
  3. 12 1月, 2007 1 次提交
  4. 14 12月, 2006 1 次提交
  5. 29 10月, 2006 1 次提交
  6. 22 10月, 2006 1 次提交
  7. 03 10月, 2006 5 次提交
  8. 11 7月, 2006 1 次提交
  9. 27 6月, 2006 4 次提交
  10. 02 5月, 2006 2 次提交
  11. 02 4月, 2006 1 次提交
  12. 04 2月, 2006 1 次提交
  13. 15 1月, 2006 1 次提交
  14. 07 1月, 2006 14 次提交
  15. 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
  16. 09 11月, 2005 2 次提交
  17. 01 11月, 2005 1 次提交
    • J
      [BLOCK] Unify the seperate read/write io stat fields into arrays · a362357b
      Jens Axboe 提交于
      Instead of having ->read_sectors and ->write_sectors, combine the two
      into ->sectors[2] and similar for the other fields. This saves a branch
      several places in the io path, since we don't have to care for what the
      actual io direction is. On my x86-64 box, that's 200 bytes less text in
      just the core (not counting the various drivers).
      Signed-off-by: NJens Axboe <axboe@suse.de>
      a362357b
  18. 09 10月, 2005 1 次提交