1. 10 1月, 2006 1 次提交
  2. 09 1月, 2006 1 次提交
    • C
      [PATCH] Add block_device_operations.getgeo block device method · a885c8c4
      Christoph Hellwig 提交于
      HDIO_GETGEO is implemented in most block drivers, and all of them have to
      duplicate the code to copy the structure to userspace, as well as getting
      the start sector.  This patch moves that to common code [1] and adds a
      ->getgeo method to fill out the raw kernel hd_geometry structure.  For many
      drivers this means ->ioctl can go away now.
      
      [1] the s390 block drivers are odd in this respect.  xpram sets ->start
          to 4 always which seems more than odd, and the dasd driver shifts
          the start offset around, probably because of it's non-standard
          sector size.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Jens Axboe <axboe@suse.de>
      Cc: <mike.miller@hp.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a885c8c4
  3. 07 1月, 2006 26 次提交
  4. 20 12月, 2005 1 次提交
  5. 29 11月, 2005 1 次提交
  6. 18 11月, 2005 1 次提交
    • N
      [PATCH] md: fix is_mddev_idle calculation now that disk/sector accounting... · c0e48521
      NeilBrown 提交于
      [PATCH] md: fix is_mddev_idle calculation now that disk/sector accounting happens when request completes
      
      md needs to monitor the rate of requests to its devices when doing
      resync/recovery so that it can back-off when there is non-resync IO.  It
      does this by comparing resync IO, which it counts, with total IO which is
      taken from disk_stats.
      
      disk_stats were recently changed to account sectors when a request
      completes instead of when it is queued.  This upsets md's calculations.
      
      We could do the sync_io accounting at the end of requests too, but that has
      problems.  If an underlying device is an md array, the accounting will
      still be done when the request is submitted.  This could be changed for
      some raid levels, but it cannot be changed for raid0 or linear without
      substantial code changes.
      
      So instead, we increase the error that is_mddev_idle allows, up to the
      maximum amount of resync IO that can be in flight at any time.  The
      calculation is current fragile as each personality as different limits for
      in-flight resync.  This should be fixed up.
      
      For now, this simple patch fixes the problem.
      
      Increasing the error margin decreases the sensitivity to non-resync IO.  To
      partially compensate for this, the time to wait when non-resync IO is
      detected is increased so that less steady IO is required to keep the resync
      at bay.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c0e48521
  7. 16 11月, 2005 2 次提交
  8. 09 11月, 2005 7 次提交