1. 11 7月, 2006 3 次提交
    • N
      [PATCH] md: fix resync speed calculation for restarted resyncs · ff4e8d9a
      NeilBrown 提交于
      We introduced 'io_sectors' recently so we could count the sectors that causes
      io during resync separate from sectors which didn't cause IO - there can be a
      difference if a bitmap is being used to accelerate resync.
      
      However when a speed is reported, we find the number of sectors processed
      recently by subtracting an oldish io_sectors count from a current
      'curr_resync' count.  This is wrong because curr_resync counts all sectors,
      not just io sectors.
      
      So, add a field to mddev to store the curren io_sectors separately from
      curr_resync, and use that in the calculations.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ff4e8d9a
    • N
      [PATCH] md: delay starting md threads until array is completely setup · 0b8c9de0
      NeilBrown 提交于
      When an array is started we start one or two threads (two if there is a
      reshape or recovery that needs to be completed).
      
      We currently start these *before* the array is completely set up and in
      particular before queue->queuedata is set.  If the thread actually starts
      very quickly on another CPU, we can end up dereferencing queue->queuedata
      and oops.
      
      This patch also makes sure we don't try to start a recovery if a reshape is
      being restarted.
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0b8c9de0
    • N
      [PATCH] md: possible fix for unplug problem · f4370781
      NeilBrown 提交于
      I have reports of a problem with raid5 which turns out to be because the raid5
      device gets stuck in a 'plugged' state.  This shouldn't be able to happen as
      3msec after it gets plugged it should get unplugged.  However it happens
      none-the-less.  This patch fixes the problem and is a reasonable thing to do,
      though it might hurt performance slightly in some cases.
      
      Until I can find the real problem, we should probably have this workaround in
      place.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f4370781
  2. 01 7月, 2006 1 次提交
  3. 30 6月, 2006 1 次提交
  4. 27 6月, 2006 5 次提交
  5. 02 4月, 2006 1 次提交
  6. 28 3月, 2006 12 次提交
  7. 04 2月, 2006 1 次提交
  8. 15 1月, 2006 1 次提交
  9. 07 1月, 2006 10 次提交
  10. 13 12月, 2005 1 次提交
  11. 29 11月, 2005 1 次提交
  12. 09 11月, 2005 3 次提交