Skip to content
  1. Apr 20, 2011
    • NeilBrown's avatar
      md: Fix dev_sectors on takeover from raid0 to raid4/5 · 3b71bd93
      NeilBrown authored
      
      
      A raid0 array doesn't set 'dev_sectors' as each device might
      contribute a different number of sectors.
      So when converting to a RAID4 or RAID5 we need to set dev_sectors
      as they need the number.
      We have already verified that in fact all devices do contribute
      the same number of sectors, so use that number.
      
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      3b71bd93
    • NeilBrown's avatar
      md/raid5: remove setting of ->queue_lock · 2b7da309
      NeilBrown authored
      
      
      We previously needed to set ->queue_lock to match the raid5
      device_lock so we could safely use queue_flag_* operations (e.g. for
      plugging). which test the ->queue_lock is in fact locked.
      
      However that need has completely gone away and is unlikely to come
      back to remove this now-pointless setting.
      
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      2b7da309
  2. Apr 19, 2011
  3. Apr 18, 2011
  4. Apr 17, 2011