1. 12 12月, 2014 1 次提交
    • J
      NVMe: fix retry/error logic in nvme_queue_rq() · fe54303e
      Jens Axboe 提交于
      The logic around retrying and erroring IO in nvme_queue_rq() is broken
      in a few ways:
      
      - If we fail allocating dma memory for a discard, we return retry. We
        have the 'iod' stored in ->special, but we free the 'iod'.
      
      - For a normal request, if we fail dma mapping of setting up prps, we
        have the same iod situation. Additionally, we haven't set the callback
        for the request yet, so we also potentially leak IOMMU resources.
      
      Get rid of the ->special 'iod' store. The retry is uncommon enough that
      it's not worth optimizing for or holding on to resources to attempt to
      speed it up. Additionally, it's usually best practice to free any
      request related resources when doing retries.
      Acked-by: NKeith Busch <keith.busch@intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      fe54303e
  2. 11 12月, 2014 6 次提交
  3. 04 12月, 2014 1 次提交
  4. 27 11月, 2014 1 次提交
  5. 24 11月, 2014 7 次提交
  6. 22 11月, 2014 1 次提交
  7. 21 11月, 2014 2 次提交
  8. 20 11月, 2014 2 次提交
  9. 19 11月, 2014 1 次提交
  10. 18 11月, 2014 6 次提交
  11. 17 11月, 2014 12 次提交