1. 22 Aug, 2007 5 commits
    • Neil Brown's avatar
      md: allow SET_BITMAP_FILE to work on 64bit kernel with 32bit userspace · 7524619e
      Neil Brown authored
      ..  so that you can use bitmaps with 32bit userspace on a 64 bit kernel.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      7524619e
    • Neil Brown's avatar
      md: fix some small races in bitmap plugging in raid5 · 5405a10e
      Neil Brown authored
      The comment gives more details, but I didn't quite have the sequencing write,
      so there was room for races to leave bits unset in the on-disk bitmap for
      short periods of time.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      5405a10e
    • Neil Brown's avatar
      md: fix a plug/unplug race in raid5 · cc49f099
      Neil Brown authored
      When a device is unplugged, requests are moved from one or two (depending on
      whether a bitmap is in use) queues to the main request queue.
      
      So whenever requests are put on either of those queues, we should make sure
      the raid5 array is 'plugged'.  However we don't.  We currently plug the raid5
      queue just before putting requests on queues, so there is room for a race.  If
      something unplugs the queue at just the wrong time, requests will be left on
      the queue and nothing will want to unplug them.  Normally something else will
      plug and unplug the queue fairly soon, but there is a risk that nothing will.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      cc49f099
    • Neil Brown's avatar
      md: fix resync speed calculation for restarted resyncs · 26d0764d
      Neil Brown authored
      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: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      26d0764d
    • Neil Brown's avatar
      md: Allow re-add to work on array without bitmaps · 32b26819
      Neil Brown authored
      When an array has a bitmap, a device can be removed and re-added and only
      blocks changes since the removal (as recorded in the bitmap) will be resynced.
      
      It should be possible to do a similar thing to arrays without bitmaps.  i.e.
      if a device is removed and re-added and *no* changes have been made in the
      interim, then the add should not require a resync.
      
      This patch allows that option.  This means that when assembling an array one
      device at a time (e.g.  during device discovery) the array can be enabled
      read-only as soon as enough devices are available, but extra devices can still
      be added without causing a resync.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      32b26819
  2. 11 Aug, 2007 9 commits
  3. 25 Jul, 2007 1 commit
  4. 22 Jul, 2007 17 commits
  5. 30 May, 2007 1 commit
  6. 24 May, 2007 1 commit
  7. 22 May, 2007 6 commits