Re: [PATCH v3 1/2] dax/bus: fix mapping attribute error reporting
From: Muchun Song
Date: Tue Oct 13 2026 - 02:27:43 EST
> On Oct 13, 2026, at 08:13, Alison Schofield <alison.schofield@xxxxxxxxx> wrote:
>
> On Thu, Sep 24, 2026 at 10:50:34AM +0800, Muchun Song wrote:
>> After the DAX configuration locking was converted to rwsems, successful
>> lock acquisition leaves rc set to zero in mapping_store(). Two error
>> paths can return this stale value: an unbound region driver and a
>> misaligned range size. The sysfs write therefore reports success without
>> allocating the requested range.
>>
>> Return -ENXIO when the region driver is not bound and -EINVAL when the
>> range size is misaligned.
>
> Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>
Thanks.
>
> Will modify subject line upon applying like so:
> dax/bus: Return errors for invalid mapping requests
No problem.
Thanks,
Muchun