xarray: free unused spare node after range creation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: xarray: free unused spare node in xas_create_range()lib/ | +6 | 1 reply | |
| 2/2 | lib/test_xarray: check unused spare node after range creationlib/ | +31 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | David Hildenbrand (ARM) | Andrew Morton |
|---|---|---|
| 1/2 | R-b | T-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] xarray: free unused spare node after range creation
xas_nomem() can leave a spare xa_node in an XA state when another user populates the tree before xas_create_range() retries. Free an unused spare at the end of range creation, and add a deterministic lib/test_xarray check for that path. The fix is first and the test is second.
The test patch was held on both sides of a kernel A/B run while only the fix was removed and restored. Without the fix, its spare-node assertion failed (158825705 of 158825706 checks passed). With the fix, all 158825706 checks passed. Both runs used the same verified guest test script.
Shardul Bankar (1):
lib: xarray: free unused spare node in xas_create_range()
Andrew Morton (1):
lib/test_xarray: check unused spare node after range creation
lib/test_xarray.c | 31 +++++++++++++++++++++++++++++++ lib/xarray.c | 7 ++++++- 2 files changed, 37 insertions(+), 1 deletion(-)