1. 27 May, 2009 5 commits
  2. 26 May, 2009 32 commits
  3. 25 May, 2009 3 commits
    • NeilBrown's avatar
      md: export 'frozen' resync state through sysfs · b6a9ce68
      NeilBrown authored
      The md resync engine has a 'frozen' state which ensures that
      no resync/recovery.  This is used to avoid races.
      
      Export this state through the 'sync_action' sysfs attribute
      so that user-space can benefit and also avoid some races.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      b6a9ce68
    • NeilBrown's avatar
      md: bitmap: improve bitmap maintenance code. · be512691
      NeilBrown authored
      The code for checking which bits in the bitmap can be cleared
      has 2 problems:
       1/ it repeatedly takes and drops a spinlock, where it would make
          more sense to just hold on to it most of the time.
       2/ it doesn't make use of some opportunities to skip large sections
          of the bitmap
      
      This patch fixes those.  It will only affect CPU consumption, not
      correctness.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      be512691
    • NeilBrown's avatar
      md: improve errno return when setting array_size · 2b69c839
      NeilBrown authored
      Instead of always returns EINVAL if anything goes wrong
      when setting the array size, add the option of
        E2BIG
      if the size requested is too large.  This makes it easier
      for user-space to be sure what went wrong.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      2b69c839