1. Jun 11, 2014
  2. Jun 10, 2014
  3. Jun 09, 2014
  4. Jun 07, 2014
  5. Jun 06, 2014
    • Jens Axboe's avatar
      blk-mq: bump max tag depth to 10K tags · a4391c64
      Jens Axboe authored
      
      
      For some scsi-mq cases, the tag map can be huge. So increase the
      max number of tags we support.
      
      Additionally, don't fail with EINVAL if a user requests too many
      tags. Warn that the tag depth has been adjusted down, and store
      the new value inside the tag_set passed in.
      
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      a4391c64
    • Jens Axboe's avatar
      block: add blk_rq_set_block_pc() · f27b087b
      Jens Axboe authored
      
      
      With the optimizations around not clearing the full request at alloc
      time, we are leaving some of the needed init for REQ_TYPE_BLOCK_PC
      up to the user allocating the request.
      
      Add a blk_rq_set_block_pc() that sets the command type to
      REQ_TYPE_BLOCK_PC, and properly initializes the members associated
      with this type of request. Update callers to use this function instead
      of manipulating rq->cmd_type directly.
      
      Includes fixes from Christoph Hellwig <hch@lst.de> for my half-assed
      attempt.
      
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      f27b087b
    • Jens Axboe's avatar
      block: add notion of a chunk size for request merging · 762380ad
      Jens Axboe authored
      
      
      Some drivers have different limits on what size a request should
      optimally be, depending on the offset of the request. Similar to
      dividing a device into chunks. Add a setting that allows the driver
      to inform the block layer of such a chunk size. The block layer will
      then prevent merging across the chunks.
      
      This is needed to optimally support NVMe with a non-zero stripe size.
      
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      762380ad
  6. Jun 05, 2014