Re: [PATCH 2/2] mm: Fix devm_memremap_pages() collision handling

2018-01-19 Thread Dan Williams
On Wed, Jan 17, 2018 at 4:06 PM, Jan H. Schönherr wrote: > If devm_memremap_pages() detects a collision while adding entries > to the radix-tree, we call pgmap_radix_release(). Unfortunately, > the function removes *all* entries for the range -- including the > entries that caused the collision in

[PATCH 2/2] mm: Fix devm_memremap_pages() collision handling

2018-01-17 Thread Jan H . Schönherr
If devm_memremap_pages() detects a collision while adding entries to the radix-tree, we call pgmap_radix_release(). Unfortunately, the function removes *all* entries for the range -- including the entries that caused the collision in the first place. Modify pgmap_radix_release() to take an additio