An error occurred fetching the project authors.
  1. 24 May, 2007 1 commit
  2. 08 May, 2007 1 commit
  3. 12 Apr, 2007 1 commit
  4. 11 Feb, 2007 1 commit
  5. 09 Feb, 2007 1 commit
    • Neil Brown's avatar
      [PATCH] md: avoid possible BUG_ON in md bitmap handling · da6e1a32
      Neil Brown authored
      md/bitmap tracks how many active write requests are pending on blocks
      associated with each bit in the bitmap, so that it knows when it can clear
      the bit (when count hits zero).
      
      The counter has 14 bits of space, so if there are ever more than 16383, we
      cannot cope.
      
      Currently the code just calles BUG_ON as "all" drivers have request queue
      limits much smaller than this.
      
      However is seems that some don't.  Apparently some multipath configurations
      can allow more than 16383 concurrent write requests.
      
      So, in this unlikely situation, instead of calling BUG_ON we now wait
      for the count to drop down a bit.  This requires a new wait_queue_head,
      some waiting code, and a wakeup call.
      
      Tested by limiting the counter to 20 instead of 16383 (writes go a lot slower
      in that case...).
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      da6e1a32
  6. 26 Jan, 2007 1 commit
  7. 08 Dec, 2006 1 commit
  8. 21 Oct, 2006 1 commit
  9. 11 Oct, 2006 1 commit
  10. 03 Oct, 2006 2 commits
  11. 30 Jun, 2006 1 commit
  12. 26 Jun, 2006 8 commits
  13. 26 Mar, 2006 1 commit
  14. 25 Mar, 2006 1 commit
  15. 24 Mar, 2006 1 commit
  16. 15 Jan, 2006 1 commit
  17. 06 Jan, 2006 7 commits
  18. 18 Nov, 2005 1 commit
  19. 09 Nov, 2005 4 commits
    • NeilBrown's avatar
      [PATCH] md: support BIO_RW_BARRIER for md/raid1 · a9701a30
      NeilBrown authored
      We can only accept BARRIER requests if all slaves handle
      barriers, and that can, of course, change with time....
      
      So we keep track of whether the whole array seems safe for barriers,
      and also whether each individual rdev handles barriers.
      
      We initially assumes barriers are OK.
      
      When writing the superblock we try a barrier, and if that fails, we flag
      things for no-barriers.  This will usually clear the flags fairly quickly.
      
      If writing the superblock finds that BIO_RW_BARRIER is -ENOTSUPP, we need to
      resubmit, so introduce function "md_super_wait" which waits for requests to
      finish, and retries ENOTSUPP requests without the barrier flag.
      
      When writing the real raid1, write requests which were BIO_RW_BARRIER but
      which aresn't supported need to be retried.  So raid1d is enhanced to do this,
      and when any bio write completes (i.e.  no retry needed) we remove it from the
      r1bio, so that devices needing retry are easy to find.
      
      We should hardly ever get -ENOTSUPP errors when writing data to the raid.
      It should only happen if:
        1/ the device used to support BARRIER, but now doesn't.  Few devices
           change like this, though raid1 can!
      or
        2/ the array has no persistent superblock, so there was no opportunity to
           pre-test for barriers when writing the superblock.
      Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
      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>
      a9701a30
    • NeilBrown's avatar
      [PATCH] md: make md on-disk bitmaps not host-endian · bd926c63
      NeilBrown authored
      Current bitmaps use set_bit et.al and so are host-endian, which means
      not-portable.  Oops.
      
      Define a new version number (4) for which bitmaps are little-endian.
      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>
      bd926c63
    • NeilBrown's avatar
      [PATCH] md: convert 'faulty' and 'in_sync' fields to bits in 'flags' field · b2d444d7
      NeilBrown authored
      This has the advantage of removing the confusion caused by 'rdev_t' and
      'mddev_t' both having 'in_sync' fields.
      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>
      b2d444d7
    • Olaf Hering's avatar
      [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason · 733482e4
      Olaf Hering authored
      This patch removes almost all inclusions of linux/version.h.  The 3
      #defines are unused in most of the touched files.
      
      A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
      unfortunatly in linux/version.h.
      
      There are also lots of #ifdef for long obsolete kernels, this was not
      touched.  In a few places, the linux/version.h include was move to where
      the LINUX_VERSION_CODE was used.
      
      quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
      
      search pattern:
      /UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).h
      Signed-off-by: default avatarOlaf Hering <olh@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      733482e4
  20. 28 Oct, 2005 1 commit
  21. 09 Sep, 2005 3 commits