1. 27 Mar, 2006 6 commits
    • Ben Woodard's avatar
      [BLOCK] increase size of disk stat counters · 837c7878
      Ben Woodard authored
      The kernel's representation of the disk statistics uses the type unsigned
      which is 32b on both 32b and 64b platforms.  Unfortunately, most system
      tools that work with these numbers that are exported in /proc/diskstats
      including iostat read these numbers into unsigned longs.  This works fine
      on 32b platforms and when the number of IO transactions are small on 64b
      platforms.  However, when the numbers wrap on 64b platforms & you read the
      numbers into unsigned longs, and compare the numbers to previous readings,
      then you get an unsigned representation of a negative number.  This looks
      like a very large 64b number & gives you bizarre readouts in iostat:
      
      ilc4: Device:    rrqm/s wrqm/s r/s    w/s  rsec/s  wsec/s    rkB/s wkB/s avgrq-sz avgqu-sz   await  svctm  %util
      ilc4: sda        5.50   0.00   143.96 0.00 307496983987862656.00 0.00 153748491993931328.00     0.00 2136028725038430.00     7.94   55.12    5.59  80.42
      
      Though fixing iostat in user space is possible, and a quick survey
      indicates that several other similar tools also use unsigned longs when
      processing /proc/diskstats.  Therefore, it seems like a better approach
      would be to extend the length of the disk_stats structure on 64b
      architectures to 64b.  The following patch does that.  It should not affect
      the operation on 32b platforms.
      Signed-off-by: default avatarBen Woodard <woodard@redhat.com>
      Cc: Rick Lindsley <ricklind@us.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      837c7878
    • Andrew Morton's avatar
      [PATCH] blk_execute_rq_nowait-speedup · 4c5d0bbd
      Andrew Morton authored
      Both elv_add_request() and generic_unplug_device() grab the queue lock
      and disable interrupts, do that locally and use the __ variants.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      4c5d0bbd
    • Jens Axboe's avatar
      [PATCH] ide-cd: quiet down GPCMD_READ_CDVD_CAPACITY failure · b8fca1c7
      Jens Axboe authored
      Some drives like to throw a:
      
      ATAPI device hdc:
        Error: Not ready -- (Sense key=0x02)
        Incompatible medium installed -- (asc=0x30, ascq=0x00)
        The failed "Read Cd/Dvd Capacity" packet command was:
        "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
      
      warning on incompatible media, so quiet down this error.
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      b8fca1c7
    • Jens Axboe's avatar
      [BLOCK] ll_rw_blk: kmalloc -> kzalloc conversion · f68110fc
      Jens Axboe authored
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      f68110fc
    • Eric Sesterhenn's avatar
      [PATCH] kzalloc() conversion in drivers/block · 06ff37ff
      Eric Sesterhenn authored
      this patch converts drivers/block to kzalloc usage.
      Compile tested with allyesconfig.
      Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      06ff37ff
    • Mike Christie's avatar
      [PATCH] update max_sectors documentation · 28832e83
      Mike Christie authored
      The max_sectors has been split into max_hw_sectors and max_sectors for some
      time. A patch to have blk_queue_max_sectors enforce this was sent by
      me and it broke IDE. This patch updates the documentation.
      Signed-off-by: default avatarJens Axboe <axboe@suse.de>
      28832e83
  2. 26 Mar, 2006 34 commits