1. 27 5月, 2020 4 次提交
  2. 10 5月, 2020 6 次提交
  3. 02 4月, 2020 1 次提交
  4. 05 3月, 2020 4 次提交
  5. 01 8月, 2019 1 次提交
  6. 10 7月, 2019 1 次提交
  7. 25 4月, 2019 1 次提交
    • M
      nvmet: return a specified error it subsys_alloc fails · 6b7e631b
      Minwoo Im 提交于
      nvmet_subsys_alloc() returns its pointer or NULL if it fails.  We can
      see three different steps in this function:
        1. memory allocation
        2. argument check
        3. memory allocation for string
      
      But now the callers of this function do not seem to handle case 2 by
      returning -ENOMEM only even if it fails with an invalid parameter.
      
      This patch specifies error codes so that caller can pass it to its own
      caller.
      Signed-off-by: NMinwoo Im <minwoo.im.dev@gmail.com>
      Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      6b7e631b
  8. 20 2月, 2019 1 次提交
  9. 13 12月, 2018 1 次提交
  10. 08 12月, 2018 3 次提交
  11. 18 10月, 2018 1 次提交
    • L
      nvmet: Optionally use PCI P2P memory · c6925093
      Logan Gunthorpe 提交于
      Create a configfs attribute in each nvme-fabrics namespace to enable P2P
      memory use.  The attribute may be enabled (with a boolean) or a specific
      P2P device may be given (with the device's PCI name).
      
      When enabled, the namespace will ensure the underlying block device
      supports P2P and is compatible with any specified P2P device.  If no device
      was specified it will ensure there is compatible P2P memory somewhere in
      the system.  Enabling a namespace with P2P memory will fail with EINVAL
      (and an appropriate dmesg error) if any of these conditions are not met.
      
      Once a controller is set up on a specific port, the P2P device to use for
      each namespace will be found and stored in a radix tree by namespace ID.
      When memory is allocated for a request, the tree is used to look up the P2P
      device to allocate memory against.  If no device is in the tree (because no
      appropriate device was found), or if allocation of P2P memory fails, fall
      back to using regular memory.
      Signed-off-by: NStephen Bates <sbates@raithlin.com>
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      [hch: partial rewrite of the initial code]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NLogan Gunthorpe <logang@deltatee.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      c6925093
  12. 28 7月, 2018 2 次提交
  13. 25 7月, 2018 1 次提交
  14. 23 7月, 2018 2 次提交
    • S
      nvmet-rdma: support max(16KB, PAGE_SIZE) inline data · 0d5ee2b2
      Steve Wise 提交于
      The patch enables inline data sizes using up to 4 recv sges, and capping
      the size at 16KB or at least 1 page size.  So on a 4K page system, up to
      16KB is supported, and for a 64K page system 1 page of 64KB is supported.
      
      We avoid > 0 order page allocations for the inline buffers by using
      multiple recv sges, one for each page.  If the device cannot support
      the configured inline data size due to lack of enough recv sges, then
      log a warning and reduce the inline size.
      
      Add a new configfs port attribute, called param_inline_data_size,
      to allow configuring the size of inline data for a given nvmf port.
      The maximum size allowed is still enforced by nvmet-rdma with
      NVMET_RDMA_MAX_INLINE_DATA_SIZE, which is now max(16KB, PAGE_SIZE).
      And the default size, if not specified via configfs, is still PAGE_SIZE.
      This preserves the existing behavior, but allows larger inline sizes
      for small page systems.  If the configured inline data size exceeds
      NVMET_RDMA_MAX_INLINE_DATA_SIZE, a warning is logged and the size is
      reduced.  If param_inline_data_size is set to 0, then inline data is
      disabled for that nvmf port.
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Reviewed-by: NMax Gurtovoy <maxg@mellanox.com>
      Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      0d5ee2b2
    • C
      nvmet: add buffered I/O support for file backed ns · 55eb942e
      Chaitanya Kulkarni 提交于
      Add a new "buffered_io" attribute, which disabled direct I/O and thus
      enables page cache based caching when enabled.   The attribute can only
      be changed when the namespace is disabled as the file has to be reopend
      for the change to take effect.
      
      The possibly blocking read/write are deferred to a newly introduced
      global workqueue.
      Signed-off-by: NChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      55eb942e
  15. 09 6月, 2018 1 次提交
  16. 26 3月, 2018 2 次提交
  17. 19 10月, 2017 1 次提交
  18. 29 8月, 2017 1 次提交
  19. 20 7月, 2017 2 次提交
  20. 15 6月, 2017 2 次提交
  21. 26 1月, 2017 1 次提交
  22. 06 12月, 2016 1 次提交