Re: [PATCH] device-dax: Fix range release

2020-12-19 Thread Dan Williams
On Fri, Dec 18, 2020 at 11:46 PM Leizhen (ThunderTown) wrote: > > > > On 2020/12/19 10:41, Dan Williams wrote: > > There are multiple locations that open-code the release of the last > > range in a device-dax instance. Consolidate this into a new > > dev_dax_trim_range() helper. > > > > This also

Re: [PATCH] device-dax: Fix range release

2020-12-18 Thread Leizhen (ThunderTown)
On 2020/12/19 10:41, Dan Williams wrote: > There are multiple locations that open-code the release of the last > range in a device-dax instance. Consolidate this into a new > dev_dax_trim_range() helper. > > This also addresses a kmemleak report: > > # cat /sys/kernel/debug/kmemleak > [..] >

[PATCH] device-dax: Fix range release

2020-12-18 Thread Dan Williams
There are multiple locations that open-code the release of the last range in a device-dax instance. Consolidate this into a new dev_dax_trim_range() helper. This also addresses a kmemleak report: # cat /sys/kernel/debug/kmemleak [..] unreferenced object 0x976bd46f6240 (size 64): comm