Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Kani, Toshimitsu
On Fri, 2017-04-28 at 15:39 -0700, Dan Williams wrote: > On Fri, Apr 28, 2017 at 3:29 PM, Kani, Toshimitsu > wrote: > > On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: > > > On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani : > > > > > > > > -   nvdimm_forget_poison(nvdimm_bus, phys, len);

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Dan Williams
On Fri, Apr 28, 2017 at 3:29 PM, Kani, Toshimitsu wrote: > On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: >> On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani >> wrote: >> > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length >> > of error actually cleared, which may be smaller t

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Kani, Toshimitsu
On Fri, 2017-04-28 at 14:48 -0700, Dan Williams wrote: > On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani > wrote: > > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length > > of error actually cleared, which may be smaller than its requested > > 'len'. > > > > Change nvdimm_clear_poison

Re: [PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-28 Thread Dan Williams
On Thu, Apr 27, 2017 at 3:57 PM, Toshi Kani wrote: > ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length > of error actually cleared, which may be smaller than its requested > 'len'. > > Change nvdimm_clear_poison() to call nvdimm_forget_poison() with > 'clear_err.cleared' when this

[PATCH 1/2] libnvdimm: fix clear length of nvdimm_forget_poison()

2017-04-27 Thread Toshi Kani
ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length of error actually cleared, which may be smaller than its requested 'len'. Change nvdimm_clear_poison() to call nvdimm_forget_poison() with 'clear_err.cleared' when this value is valid. Signed-off-by: Toshi Kani Cc: Dan Williams