1. 06 7月, 2016 2 次提交
    • M
      nvme: add fabrics sysfs attributes · 1a353d85
      Ming Lin 提交于
      - delete_controller: This attribute allows to delete a controller.
        A driver is not obligated to support it (pci doesn't) so it is
        created only if the driver supports it. The new fabrics drivers
        will support it (essentialy a disconnect operation).
      
        Usage:
        echo > /sys/class/nvme/nvme0/delete_controller
      
      - subsysnqn: This attribute shows the subsystem nqn of the configured
        device. If a driver does not implement the get_subsysnqn method, the
        file will not appear in sysfs.
      
      - transport: This attribute shows the transport name. Added a "name"
        field to struct nvme_ctrl_ops.
      
        For loop,
        cat /sys/class/nvme/nvme0/transport
        loop
      
        For RDMA,
        cat /sys/class/nvme/nvme0/transport
        rdma
      
        For PCIe,
        cat /sys/class/nvme/nvme0/transport
        pcie
      
      - address: This attributes shows the controller address. The fabrics
        drivers that will implement get_address can show the address of the
        connected controller.
      
        example:
        cat /sys/class/nvme/nvme0/address
        traddr=192.168.2.2,trsvcid=1023
      Signed-off-by: NMing Lin <ming.l@ssi.samsung.com>
      Reviewed-by: NJay Freyensee <james.p.freyensee@intel.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NKeith Busch <keith.busch@intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      1a353d85
    • C
      nvme: Modify and export sync command submission for fabrics · eb71f435
      Christoph Hellwig 提交于
      NVMe over fabrics will use __nvme_submit_sync_cmd in the the
      transport and require a few tweaks to it.  For that we export it
      and add a few more paramters:
      
      1. allow passing a queue ID to the block layer
      
         For the NVMe over Fabrics connect command we need to able to specify a
         queue ID that we want to send the command on.  Add a qid parameter to
         the relevant functions to enable this behavior.
      
      2. allow submitting at_head commands
      
         In cases where we want to (re)connect to a controller
         where we have inflight queued commands we want to first
         connect and only then allow the other queued commands to
         be kicked. This will prevents failures in controller resets
         and reconnects.
      
      3. allow passing flags to blk_mq_allocate_request
      
         Both for Fabrics connect the the keep-alive feature in NVMe 1.2.1 we
         want to be able to use reserved requests.
      Reviewed-by: NJay Freyensee <james.p.freyensee@intel.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Tested-by: NMing Lin <ming.l@ssi.samsung.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NKeith Busch <keith.busch@intel.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      eb71f435
  2. 08 6月, 2016 2 次提交
  3. 18 5月, 2016 1 次提交
  4. 02 5月, 2016 5 次提交
  5. 26 4月, 2016 1 次提交
  6. 13 4月, 2016 2 次提交
  7. 16 3月, 2016 1 次提交
  8. 08 3月, 2016 1 次提交
  9. 04 3月, 2016 3 次提交
  10. 01 3月, 2016 1 次提交
  11. 29 2月, 2016 1 次提交
  12. 12 2月, 2016 1 次提交
  13. 11 2月, 2016 2 次提交
  14. 13 1月, 2016 3 次提交
  15. 23 12月, 2015 6 次提交
  16. 02 12月, 2015 8 次提交