1. 09 Nov, 2007 1 commit
  2. 19 Oct, 2007 1 commit
  3. 17 Oct, 2007 1 commit
  4. 16 Oct, 2007 1 commit
  5. 10 Oct, 2007 1 commit
  6. 22 Aug, 2007 2 commits
  7. 24 Jul, 2007 1 commit
  8. 17 Jul, 2007 1 commit
    • NeilBrown's avatar
      md: change bitmap_unplug and others to void functions · 4ad13663
      NeilBrown authored
      
      bitmap_unplug only ever returns 0, so it may as well be void.  Two callers try
      to print a message if it returns non-zero, but that message is already printed
      by bitmap_file_kick.
      
      write_page returns an error which is not consistently checked.  It always
      causes BITMAP_WRITE_ERROR to be set on an error, and that can more
      conveniently be checked.
      
      When the return of write_page is checked, an error causes bitmap_file_kick to
      be called - so move that call into write_page - and protect against recursive
      calls into bitmap_file_kick.
      
      bitmap_update_sb returns an error that is never checked.
      
      So make these 'void' and be consistent about checking the bit.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4ad13663
  9. 16 Jun, 2007 1 commit
  10. 10 May, 2007 1 commit
  11. 09 May, 2007 2 commits
    • Linus Torvalds's avatar
      Revert "md: improve partition detection in md array" · 44ce6294
      Linus Torvalds authored
      This reverts commit 5b479c91
      
      .
      
      Quoth Neil Brown:
      
        "It causes an oops when auto-detecting raid arrays, and it doesn't
         seem easy to fix.
      
         The array may not be 'open' when do_md_run is called, so
         bdev->bd_disk might be NULL, so bd_set_size can oops.
      
         This whole approach of opening an md device before it has been
         assembled just seems to get more and more painful.  I think I'm going
         to have to come up with something clever to provide both backward
         comparability with usage expectation, and sane integration into the
         rest of the kernel."
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      44ce6294
    • NeilBrown's avatar
      md: improve partition detection in md array · 5b479c91
      NeilBrown authored
      
      md currently uses ->media_changed to make sure rescan_partitions
      is call on md array after they are assembled.
      
      However that doesn't happen until the array is opened, which is later
      than some people would like.
      
      So use blkdev_ioctl to do the rescan immediately that the
      array has been assembled.
      
      This means we can remove all the ->change infrastructure as it was only used
      to trigger a partition rescan.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5b479c91
  12. 26 Jan, 2007 2 commits
  13. 11 Jan, 2007 1 commit
  14. 13 Dec, 2006 1 commit
  15. 10 Dec, 2006 1 commit
    • NeilBrown's avatar
      [PATCH] md: assorted md and raid1 one-liners · 17571284
      NeilBrown authored
      
      Fix few bugs that meant that:
        - superblocks weren't alway written at exactly the right time (this
          could show up if the array was not written to - writting to the array
          causes lots of superblock updates and so hides these errors).
      
        - restarting device recovery after a clean shutdown (version-1 metadata
          only) didn't work as intended (or at all).
      
      1/ Ensure superblock is updated when a new device is added.
      2/ Remove an inappropriate test on MD_RECOVERY_SYNC in md_do_sync.
         The body of this if takes one of two branches depending on whether
         MD_RECOVERY_SYNC is set, so testing it in the clause of the if
         is wrong.
      3/ Flag superblock for updating after a resync/recovery finishes.
      4/ If we find the neeed to restart a recovery in the middle (version-1
         metadata only) make sure a full recovery (not just as guided by
         bitmaps) does get done.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      17571284
  16. 28 Oct, 2006 1 commit
  17. 03 Oct, 2006 5 commits
  18. 01 Sep, 2006 1 commit
  19. 27 Aug, 2006 1 commit
  20. 10 Jul, 2006 2 commits
  21. 26 Jun, 2006 3 commits
  22. 01 May, 2006 3 commits
  23. 31 Mar, 2006 2 commits
  24. 27 Mar, 2006 3 commits
  25. 09 Mar, 2006 1 commit