1. 04 7月, 2017 1 次提交
  2. 02 7月, 2017 2 次提交
  3. 28 6月, 2017 6 次提交
  4. 15 6月, 2017 4 次提交
  5. 09 6月, 2017 1 次提交
  6. 07 6月, 2017 2 次提交
  7. 05 6月, 2017 1 次提交
  8. 26 5月, 2017 1 次提交
  9. 23 5月, 2017 6 次提交
  10. 21 5月, 2017 2 次提交
  11. 02 5月, 2017 1 次提交
  12. 26 4月, 2017 1 次提交
  13. 24 4月, 2017 4 次提交
    • C
      nvme-fc: mark two symbols static · baee29ac
      Christoph Hellwig 提交于
      Found by sparse.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NJames Smart <james.smart@broadcom.com>
      Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
      baee29ac
    • J
      nvme_fc: add controller reset support · 61bff8ef
      James Smart 提交于
      This patch actually does quite a few things.  When looking to add
      controller reset support, the organization modeled after rdma was
      very fragmented. rdma duplicates the reset and teardown paths and does
      different things to the block layer on the two paths. The code to build
      up the controller is also duplicated between the initial creation and
      the reset/error recovery paths. So I decided to make this sane.
      
      I reorganized the controller creation and teardown so that there is a
      connect path and a disconnect path.  Initial creation obviously uses
      the connect path.  Controller teardown will use the disconnect path,
      followed last access code. Controller reset will use the disconnect
      path to stop operation, and then the connect path to re-establish
      the controller.
      
      Along the way, several things were fixed
      - aens were not properly set up. They are allocated differently from
        the per-request structure on the blk queues.
      - aens were oddly torn down. the prior patch corrected to abort, but
        we still need to dma unmap and free relative elements.
      - missed a few ref counting points: in aen completion and on i/o's
        that fail
      - controller initial create failure paths were still confused vs teardown
        before converting to ref counting vs after we convert to refcounting.
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      61bff8ef
    • J
      nvme_fc: add aen abort to teardown · 78a7ac26
      James Smart 提交于
      Add abort support for aens. Commonized the op abort to apply to aen or
      real ios (caused some reorg/routine movement). Abort path sets termination
      flag in prep for next patch that will be watching i/o abort completion
      before proceeding with controller teardown.
      
      Now that we're aborting aens, the "exit" code that simply cleared out
      their context no longer applies.
      
      Also clarified how we detect an AEN vs a normal io - by a flag, not
      by whether a rq exists or the a rqno is out of range.
      
      Note: saw some interesting cases where if the queues are stopped and
      we're waiting for the aborts, the core layer can call the complete_rq
      callback for the io. So the io completion synchronizes link side completion
      with possible blk layer completion under error.
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      78a7ac26
    • J
      nvme_fc: fix command id check · 458f280d
      James Smart 提交于
      The code validates the command_id in the response to the original
      sqe command. But prior code was using the rq->rqno as the sqe command
      id. The core layer overwrites what the transport set there originally.
      
      Use the actual sqe content.
      Signed-off-by: NJames Smart <james.smart@broadcom.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      458f280d
  14. 21 4月, 2017 4 次提交
  15. 10 4月, 2017 1 次提交
  16. 04 4月, 2017 3 次提交