1. 14 4月, 2016 1 次提交
  2. 19 3月, 2016 1 次提交
  3. 25 1月, 2016 1 次提交
  4. 02 12月, 2015 3 次提交
  5. 10 11月, 2015 1 次提交
  6. 04 10月, 2015 1 次提交
  7. 01 6月, 2015 1 次提交
  8. 28 4月, 2015 2 次提交
  9. 24 11月, 2014 1 次提交
  10. 12 11月, 2014 4 次提交
  11. 04 11月, 2014 1 次提交
    • H
      uas: Make uas work with blk-mq · e28e2f2f
      Hans de Goede 提交于
      With uas over usb-3 the tags inside the uas iu-s must match the usb-3 stream
      ids, and those go from 1 - qdepth.
      
      Before blk-mq calling scsi_activate_tcq(sdev, qdepth) guaranteed that we would
      only get cmnd->request->tag from 0 - (qdepth - 1), and we used those as
      uas-tags / stream-ids.
      
      With blk-mq however we are guaranteed to never get more then qdepth commands
      queued at the same time, but the cmnd->request->tag values may be much larger,
      which breaks uas.
      
      This commit fixes this by generating uas tags in the 1 - qdepth range ourselves
      instead of using cmnd->request->tag.
      
      While touching all involved code anyways also rename the uas_cmd_info stream
      field to uas_tag, because when using uas over usb-2 streams are not used.
      
      Cc: Christoph Hellwig <hch@infradead.org>
      Reported-by: NDouglas Gilbert <dgilbert@interlog.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      
      --
      Changes in v2:
      -Remove ".disable_blk_mq = true" from uas_host_template
      Changes in v3:
      -Rebased on top of Linus' current master branch
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e28e2f2f
  12. 04 10月, 2014 1 次提交
  13. 03 10月, 2014 1 次提交
  14. 24 9月, 2014 21 次提交