1. 01 7月, 2017 2 次提交
    • D
      libnvdimm, region, pmem: fix 'badblocks' sysfs_get_dirent() reference lifetime · 6aa734a2
      Dan Williams 提交于
      We need to hold a reference on the 'dirent' until we are sure there are
      no more notifications that will be sent. As noted in the new comments we
      take advantage of the fact that the references are taken and dropped
      under device_lock() and that nd_device_notify() holds device_lock() over
      new badblocks notifications. The notifications that happen when
      badblocks are cleared only occur while the device is active.
      
      Also take the opportunity to fix up the error messages to report the
      user visible effect of a sysfs_get_dirent() failure.
      
      Fixes: 975750a9 ("libnvdimm, pmem: Add sysfs notifications to badblocks")
      Cc: Toshi Kani <toshi.kani@hpe.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      6aa734a2
    • V
      libnvdimm: fix the clear-error check in nsio_rw_bytes · 7e5a21df
      Vishal Verma 提交于
      A leftover from the 'bandaid' fix that disabled BTT error clearing in
      rw_bytes resulted in an incorrect check. After we converted these checks
      over to use the NVDIMM_IO_ATOMIC flag, the ndns->claim check was both
      redundant, and incorrect. Remove it.
      
      Fixes: 3ae3d67b ("libnvdimm: add an atomic vs process context flag to rw_bytes")
      Cc: <stable@vger.kernel.org>
      Cc: Dave Jiang <dave.jiang@intel.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Signed-off-by: NVishal Verma <vishal.l.verma@intel.com>
      Signed-off-by: NDan Williams <dan.j.williams@intel.com>
      7e5a21df
  2. 30 6月, 2017 4 次提交
  3. 16 6月, 2017 12 次提交
  4. 09 6月, 2017 2 次提交
  5. 08 6月, 2017 1 次提交
  6. 07 6月, 2017 1 次提交
  7. 06 6月, 2017 4 次提交
  8. 05 6月, 2017 14 次提交