> On 20-Oct-2020, at 2:22 PM, Aneesh Kumar K.V <[email protected]> 
> wrote:
> 
> "Aneesh Kumar K.V" <[email protected]> writes:
> 
>> Hi Christoph,
>> 
>> commit 6f42193fd86e ("memremap: don't use a separate devm action for
>> devmap_managed_enable_get") changed the static key updates such that we
>> are now calling      devmap_managed_enable_put() without doing the equivalent
>> devmap_managed_enable_get().
>> 
>> devmap_managed_enable_get() is only called for MEMORY_DEVICE_PRIVATE and
>> MEMORY_DEVICE_FS_DAX, But memunmap_pages() get called for other pgmap
>> types too. This result in the below. I can recreate this by repeatedly
>> switching between system-ram and devdax mode for devdax namespace. 
>> 
>> 
> 
> 
> mm/memremap.c | 19 +++++++++++++++----
> 
> modified   mm/memremap.c
> @@ -158,6 +158,16 @@ void memunmap_pages(struct dev_pagemap *pgmap)

This fixes the warning for me.

Thanks
-Sachin
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to