mbox series

[-v3,0/3] resource: Fix region_intersects() vs add_memory_driver_managed()

Message ID 20240906030713.204292-1-ying.huang@intel.com
Headers show
Series resource: Fix region_intersects() vs add_memory_driver_managed() | expand

Message

Huang, Ying Sept. 6, 2024, 3:07 a.m. UTC
The patchset fixes a bug of region_intersects() for systems with CXL
memory.  The details of the bug can be found in [1/3].  To avoid
similar bugs in the future.  A kunit test case for region_intersects()
is added in [3/3].  [2/3] is a preparation patch for [3/3].

Changelogs:

v3:

- Revise the patch subject, description and comments, Thanks Bjorn,
  Andy, David, and Dan!

- Added a kunit test case.

- Fixed several coding style issues, Thanks Andy!

- Link to v2: https://lore.kernel.org/linux-mm/20240819023413.1109779-1-ying.huang@intel.com/

v2:

- Fix a bug which occurs when descendant of a matched resource matches.

- Revise the patch description and comments to make the algorithm clearer.
  Thanks Dan and David's comments!

- Link to v1: https://lore.kernel.org/linux-mm/20240816020723.771196-1-ying.huang@intel.com/

Best Regards,
Huang, Ying