Searched hist:"1 db1f3cea1d8886c686832d4618b346ae16c03c8" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/nvdimm/ |
H A D | claim.c | diff 1db1f3cea1d8886c686832d4618b346ae16c03c8 Wed Aug 30 20:35:58 CDT 2017 Vishal Verma <vishal.l.verma@intel.com> libnvdimm, btt: fix a missed NVDIMM_IO_ATOMIC case in the write path
The IO context conversion for rw_bytes missed a case in the BTT write path (btt_map_write) which should've been marked as atomic.
In reality this should not cause a problem, because map writes are to small for nsio_rw_bytes to attempt error clearing, but it should be fixed for posterity.
Add a might_sleep() in the non-atomic section of nsio_rw_bytes so that things like the nfit unit tests, which don't actually sleep, can catch bugs like this.
Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|
H A D | btt.c | diff 1db1f3cea1d8886c686832d4618b346ae16c03c8 Wed Aug 30 20:35:58 CDT 2017 Vishal Verma <vishal.l.verma@intel.com> libnvdimm, btt: fix a missed NVDIMM_IO_ATOMIC case in the write path
The IO context conversion for rw_bytes missed a case in the BTT write path (btt_map_write) which should've been marked as atomic.
In reality this should not cause a problem, because map writes are to small for nsio_rw_bytes to attempt error clearing, but it should be fixed for posterity.
Add a might_sleep() in the non-atomic section of nsio_rw_bytes so that things like the nfit unit tests, which don't actually sleep, can catch bugs like this.
Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|