1. 15 4月, 2021 5 次提交
  2. 13 4月, 2021 1 次提交
  3. 06 4月, 2021 4 次提交
  4. 03 4月, 2021 19 次提交
  5. 13 3月, 2021 1 次提交
  6. 11 3月, 2021 8 次提交
  7. 05 3月, 2021 2 次提交
    • M
      nvme-fabrics: fix kato initialization · 32feb6de
      Martin George 提交于
      Currently kato is initialized to NVME_DEFAULT_KATO for both
      discovery & i/o controllers. This is a problem specifically
      for non-persistent discovery controllers since it always ends
      up with a non-zero kato value. Fix this by initializing kato
      to zero instead, and ensuring various controllers are assigned
      appropriate kato values as follows:
      
      non-persistent controllers  - kato set to zero
      persistent controllers      - kato set to NVMF_DEV_DISC_TMO
                                    (or any positive int via nvme-cli)
      i/o controllers             - kato set to NVME_DEFAULT_KATO
                                    (or any positive int via nvme-cli)
      Signed-off-by: NMartin George <marting@netapp.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      32feb6de
    • D
      nvme-hwmon: Return error code when registration fails · 78570f88
      Daniel Wagner 提交于
      The hwmon pointer wont be NULL if the registration fails. Though the
      exit code path will assign it to ctrl->hwmon_device. Later
      nvme_hwmon_exit() will try to free the invalid pointer. Avoid this by
      returning the error code from hwmon_device_register_with_info().
      
      Fixes: ed7770f6 ("nvme/hwmon: rework to avoid devm allocation")
      Signed-off-by: NDaniel Wagner <dwagner@suse.de>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      78570f88