Skip to content

Radix tree patches for 4.10

Matthew Wilcox linux-fsdevel linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/233 patches 6 repliesIn review 29 of 66 applied
  2. v3 posting 1/20 of 33 patches 0 repliesSuperseded
  3. v10 of 29 patches 3 repliesSuperseded

Patches in v3 posting 2/2 29 of 66 applied

#Subject and filesSizeRepliesApplied
1/33radix tree test suite: Fix compilationlib/radix-tree.c tools/testing/radix-tree/linux/cpu.h tools/testing/radix-tree/linux/notifier.h+1 -300 replies
1/33radix tree test suite: Fix compilationlib/radix-tree.c tools/testing/radix-tree/linux/cpu.h tools/testing/radix-tree/linux/notifier.h+1 -300 replies
2/33tools: Add WARN_ON_ONCEtools/include/asm/bug.h tools/testing/radix-tree/Makefile tools/testing/radix-tree/linux/bug.h +1 more+13 -40 replies
2/33tools: Add WARN_ON_ONCEtools/include/asm/bug.h tools/testing/radix-tree/Makefile tools/testing/radix-tree/linux/bug.h +1 more+13 -40 repliesApplied
3/33radix tree test suite: Allow GFP_ATOMIC allocations to failtools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/gfp.h tools/testing/radix-tree/linux/slab.h+25 -90 replies
3/33radix tree test suite: Allow GFP_ATOMIC allocations to failtools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/gfp.h tools/testing/radix-tree/linux/slab.h+25 -90 repliesApplied
4/33radix tree test suite: Track preempt_counttools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/preempt.h tools/testing/radix-tree/main.c+24 -130 repliesApplied
4/33radix tree test suite: Track preempt_counttools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/preempt.h tools/testing/radix-tree/main.c+24 -130 replies
5/33radix tree test suite: Free preallocated nodestools/testing/radix-tree/main.c tools/testing/radix-tree/test.h+4 -00 replies
5/33radix tree test suite: Free preallocated nodestools/testing/radix-tree/main.c tools/testing/radix-tree/test.h+4 -00 repliesApplied
6/33radix tree test suite: Make runs more reproducibletools/testing/radix-tree/iteration_check.c tools/testing/radix-tree/main.c+14 -60 repliesApplied
6/33radix tree test suite: Make runs more reproducibletools/testing/radix-tree/iteration_check.c tools/testing/radix-tree/main.c+14 -60 replies
7/33radix tree test suite: iteration test misuses RCUtools/testing/radix-tree/iteration_check.c+26 -20 repliesApplied
7/33radix tree test suite: iteration test misuses RCUtools/testing/radix-tree/iteration_check.c+26 -20 replies
8/33radix tree test suite: benchmark for iteratortools/testing/radix-tree/Makefile tools/testing/radix-tree/benchmark.c tools/testing/radix-tree/linux/kernel.h +2 more+110 -10 repliesApplied
8/33radix tree test suite: benchmark for iteratortools/testing/radix-tree/Makefile tools/testing/radix-tree/benchmark.c tools/testing/radix-tree/linux/kernel.h +2 more+110 -10 replies
9/33radix tree test suite: Use rcu_barriertools/testing/radix-tree/main.c tools/testing/radix-tree/tag_check.c+15 -20 repliesApplied
9/33radix tree test suite: Use rcu_barriertools/testing/radix-tree/main.c tools/testing/radix-tree/tag_check.c+15 -20 replies
10/33radix tree test suite: Handle exceptional entriestools/testing/radix-tree/test.c+7 -00 repliesApplied
10/33radix tree test suite: Handle exceptional entriestools/testing/radix-tree/test.c+7 -00 replies
11/33radix tree test suite: record order in each itemtools/testing/radix-tree/multiorder.c tools/testing/radix-tree/test.c tools/testing/radix-tree/test.h+23 -140 repliesApplied
11/33radix tree test suite: record order in each itemtools/testing/radix-tree/multiorder.c tools/testing/radix-tree/test.c tools/testing/radix-tree/test.h+23 -140 replies
12/33tools: Add more bitmap functionstools/include/linux/bitmap.h+26 -00 replies
12/33tools: Add more bitmap functionstools/include/linux/bitmap.h+26 -00 replies
13/33radix tree test suite: Use common find-bit codetools/testing/radix-tree/Makefile tools/testing/radix-tree/find_next_bit.c tools/testing/radix-tree/linux/bitops.h +2 more+48 -800 replies
13/33radix tree test suite: Use common find-bit codetools/testing/radix-tree/Makefile tools/testing/radix-tree/find_next_bit.c tools/testing/radix-tree/linux/bitops.h +2 more+48 -800 repliesApplied
14/33radix-tree: Fix typolib/radix-tree.c+1 -10 replies
14/33radix-tree: Fix typolib/radix-tree.c+1 -10 replies
15/33radix-tree: Move rcu_head into a union with private_listinclude/linux/radix-tree.h lib/radix-tree.c+5 -100 replies
15/33radix-tree: Move rcu_head into a union with private_listinclude/linux/radix-tree.h lib/radix-tree.c+5 -100 repliesApplied
16/33radix-tree: Create node_tag_set()lib/radix-tree.c+19 -220 repliesApplied
16/33radix-tree: Create node_tag_set()lib/radix-tree.c+19 -220 replies
17/33radix-tree: Make radix_tree_find_next_bit more usefullib/radix-tree.c+7 -100 replies
17/33radix-tree: Make radix_tree_find_next_bit more usefullib/radix-tree.c+7 -100 repliesApplied
18/33radix-tree: Improve dump outputlib/radix-tree.c+26 -230 repliesApplied
18/33radix-tree: Improve dump outputlib/radix-tree.c+26 -230 replies
19/33btrfs: Fix race in btrfs_free_dummy_fs_info()fs/btrfs/tests/btrfs-tests.c+1 -00 replies
19/33btrfs: Fix race in btrfs_free_dummy_fs_info()fs/btrfs/tests/btrfs-tests.c+1 -00 repliesApplied
20/33radix-tree: Improve multiorder iteratorsfs/btrfs/tests/btrfs-tests.c include/linux/radix-tree.h lib/radix-tree.c +6 more+188 -850 repliesApplied
20/33radix-tree: Improve multiorder iteratorsfs/btrfs/tests/btrfs-tests.c include/linux/radix-tree.h lib/radix-tree.c +6 more+188 -850 replies
21/33radix-tree: Delete radix_tree_locate_item()include/linux/radix-tree.h lib/radix-tree.c mm/shmem.c +3 more+53 -1050 repliesApplied
21/33radix-tree: Delete radix_tree_locate_item()include/linux/radix-tree.h lib/radix-tree.c mm/shmem.c +3 more+53 -1050 replies
22/33radix-tree: Delete radix_tree_range_tag_if_tagged()include/linux/radix-tree.h lib/radix-tree.c mm/page-writeback.c +6 more+125 -1630 repliesApplied
22/33radix-tree: Delete radix_tree_range_tag_if_tagged()include/linux/radix-tree.h lib/radix-tree.c mm/page-writeback.c +6 more+125 -1630 replies
23/33radix-tree: Add radix_tree_joininclude/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c+213 -310 replies
23/33radix-tree: Add radix_tree_joininclude/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c+213 -310 repliesApplied
24/33radix-tree: Add radix_tree_splitinclude/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c+214 -40 repliesApplied
24/33radix-tree: Add radix_tree_splitinclude/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c+214 -42 replies
25/33radix-tree: Add radix_tree_split_preload()include/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c +1 more+69 -30 repliesApplied
25/33radix-tree: Add radix_tree_split_preload()include/linux/radix-tree.h lib/radix-tree.c tools/testing/radix-tree/multiorder.c +1 more+69 -30 replies
26/33radix-tree: Fix replacement for multiorder entrieslib/radix-tree.c tools/testing/radix-tree/multiorder.c+119 -280 replies
26/33radix-tree: Fix replacement for multiorder entrieslib/radix-tree.c tools/testing/radix-tree/multiorder.c+119 -280 repliesApplied
27/33radix tree test suite: Check multiorder iterationtools/testing/radix-tree/iteration_check.c tools/testing/radix-tree/main.c tools/testing/radix-tree/multiorder.c +1 more+73 -350 replies
27/33radix tree test suite: Check multiorder iterationtools/testing/radix-tree/iteration_check.c tools/testing/radix-tree/main.c tools/testing/radix-tree/multiorder.c +1 more+73 -350 repliesApplied
28/33idr: Add ida_is_emptydrivers/usb/gadget/function/f_hid.c drivers/usb/gadget/function/f_printer.c include/linux/idr.h+11 -60 replies
28/33idr: Add ida_is_emptydrivers/usb/gadget/function/f_hid.c drivers/usb/gadget/function/f_printer.c include/linux/idr.h+11 -60 repliesApplied
29/33tpm: Use idr_find(), not idr_find_slowpath()drivers/char/tpm/tpm-chip.c+2 -20 replies
29/33tpm: Use idr_find(), not idr_find_slowpath()drivers/char/tpm/tpm-chip.c+2 -20 repliesApplied
30/33rxrpc: Abstract away knowledge of IDR internalsinclude/linux/idr.h net/rxrpc/af_rxrpc.c net/rxrpc/conn_client.c+34 -70 replies
30/33rxrpc: Abstract away knowledge of IDR internalsinclude/linux/idr.h net/rxrpc/af_rxrpc.c net/rxrpc/conn_client.c+34 -70 repliesApplied
31/33idr: Reduce the number of bits per level from 8 to 6include/linux/idr.h+4 -50 repliesApplied
31/33idr: Reduce the number of bits per level from 8 to 6include/linux/idr.h+4 -50 replies
32/33radix tree test suite: Add some more functionalitytools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/kernel.h tools/testing/radix-tree/linux/slab.h+21 -00 repliesApplied
32/33radix tree test suite: Add some more functionalitytools/testing/radix-tree/linux.c tools/testing/radix-tree/linux/kernel.h tools/testing/radix-tree/linux/slab.h+21 -00 replies
33/33Reimplement IDR and IDA using the radix treeinclude/linux/idr.h include/linux/radix-tree.h init/main.c +8 more+811 -12150 replies
33/33Reimplement IDR and IDA using the radix treeinclude/linux/idr.h include/linux/radix-tree.h init/main.c +8 more+811 -12153 replies

Reviews trailers per patch

6 of 66 patches have a Reviewed-by or Acked-by.

PatchKonstantin KhlebnikovDavid HowellsKirill A. Shutemov
SeriesT-b
1/33
1/33
2/33
2/33
3/33
3/33
4/33
4/33
5/33
5/33
6/33
6/33
7/33
7/33
8/33
8/33
9/33
9/33
10/33
10/33
11/33
11/33
12/33
12/33
13/33
13/33
14/33
14/33
15/33
15/33
16/33
16/33
17/33
17/33
18/33
18/33
19/33
19/33
20/33
20/33
21/33A-b A-b
21/33A-b A-b
22/33
22/33
23/33
23/33
24/33
24/33
25/33
25/33
26/33
26/33
27/33
27/33
28/33A-b A-b
28/33A-b A-b
29/33
29/33
30/33R-b R-b
30/33R-b R-b
31/33
31/33
32/33
32/33
33/33
33/33

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/33] Radix tree patches for 4.10

From: Matthew Wilcox <[email protected]>

Hi Andrew,

Please include these patches in the -mm tree for 4.10. Mostly these are improvements; the only bug fixes in here relate to multiorder entries (which are unused in the 4.9 tree). The IDR rewrite has the highest potential for causing mayhem as the test suite is quite spartan. We have an Outreachy intern scheduled to work on the test suite for the 2016 winter season, so hopefully it will improve soon.

I did not include Konstantin's suggested change to the API for radix_tree_iter_resume(). Many of the callers do not currently care about the size of the entry they are consuming, and determining that information is not always trivial. Since this is not a performance critical API (it's called when we've paused iterating through a tree in order to schedule for a higher priority task), I think it's more important to have a simpler interface.

I'd like to thank Kiryl for all the testing he's been doing. He's found at least two bugs which weren't related to the API extensions that he really wanted from this patch set.

Noteworthy changes from v2:

- Rebased on latest mmots tree
- Various fixes to accommodate Johannes' exceptional entry accounting changes
- Renamed radix_tree_iter_next() to radix_tree_iter_resume()
- Add kerneldoc to radix_tree_iter_join(), radix_tree_iter_split(), and partially to struct radix_tree_node.
- Factor set_iter_tags() out of radix_tree_next_chunk() and use it in __radix_tree_next_slot().
- Rename __radix_tree_iter_next() to skip_siblings() and only compile it in when MULTIORDER is supported.
Test suite:
- Record item order
- Added an IDR replace test
- Improve iteration test to handle multiorder entries
- More tests to check exceptional entry accounting
- Handle exceptional entries in item_kill_tree()

Konstantin Khlebnikov (1):
radix tree test suite: benchmark for iterator

Matthew Wilcox (32):
radix tree test suite: Fix compilation
tools: Add WARN_ON_ONCE
radix tree test suite: Allow GFP_ATOMIC allocations to fail radix tree test suite: Track preempt_count
radix tree test suite: Free preallocated nodes radix tree test suite: Make runs more reproducible radix tree test suite: iteration test misuses RCU radix tree test suite: Use rcu_barrier
radix tree test suite: Handle exceptional entries radix tree test suite: record order in each item
tools: Add more bitmap functions
radix tree test suite: Use common find-bit code
radix-tree: Fix typo
radix-tree: Move rcu_head into a union with private_list
radix-tree: Create node_tag_set()
radix-tree: Make radix_tree_find_next_bit more useful
radix-tree: Improve dump output
btrfs: Fix race in btrfs_free_dummy_fs_info()
radix-tree: Improve multiorder iterators
radix-tree: Delete radix_tree_locate_item()
radix-tree: Delete radix_tree_range_tag_if_tagged()
radix-tree: Add radix_tree_join
radix-tree: Add radix_tree_split
radix-tree: Add radix_tree_split_preload()
radix-tree: Fix replacement for multiorder entries radix tree test suite: Check multiorder iteration
idr: Add ida_is_empty
tpm: Use idr_find(), not idr_find_slowpath()
rxrpc: Abstract away knowledge of IDR internals
idr: Reduce the number of bits per level from 8 to 6 radix tree test suite: Add some more functionality Reimplement IDR and IDA using the radix tree

 drivers/char/tpm/tpm-chip.c                        |    4 +-
 drivers/usb/gadget/function/f_hid.c                |    6 +-
 drivers/usb/gadget/function/f_printer.c            |    6 +-
 fs/btrfs/tests/btrfs-tests.c                       |    1 +
 include/linux/idr.h                                |  156 +-
 include/linux/radix-tree.h                         |  179 +--
 init/main.c                                        |    3 +-
 lib/idr.c                                          | 1078 --------------
 lib/radix-tree.c                                   | 1526 +++++++++++++++-----
 mm/khugepaged.c                                    |    7 +-
 mm/page-writeback.c                                |   28 +-
 mm/shmem.c                                         |   32 +-
 net/rxrpc/af_rxrpc.c                               |   11 +-
 net/rxrpc/conn_client.c                            |    4 +-
 tools/include/asm/bug.h                            |   11 +
 tools/include/linux/bitmap.h                       |   26 +
 tools/testing/radix-tree/Makefile                  |   18 +-
 tools/testing/radix-tree/benchmark.c               |   98 ++
 tools/testing/radix-tree/find_next_bit.c           |   57 -
 tools/testing/radix-tree/idr.c                     |  160 ++
 tools/testing/radix-tree/iteration_check.c         |  123 +-
 tools/testing/radix-tree/linux.c                   |   23 +-
 tools/testing/radix-tree/linux/bitops.h            |   40 +-
 tools/testing/radix-tree/linux/bitops/non-atomic.h |   13 +-
 tools/testing/radix-tree/linux/bug.h               |    2 +-
 tools/testing/radix-tree/linux/cpu.h               |   22 +-
 tools/testing/radix-tree/linux/gfp.h               |   22 +-
 tools/testing/radix-tree/linux/idr.h               |    1 +
 tools/testing/radix-tree/linux/kernel.h            |   20 +
 tools/testing/radix-tree/linux/notifier.h          |    8 -
 tools/testing/radix-tree/linux/preempt.h           |    6 +-
 tools/testing/radix-tree/linux/slab.h              |    6 +-
 tools/testing/radix-tree/linux/types.h             |    2 -
 tools/testing/radix-tree/main.c                    |   83 +-
 tools/testing/radix-tree/multiorder.c              |  289 +++-
 tools/testing/radix-tree/regression2.c             |    3 +-
 tools/testing/radix-tree/regression3.c             |    8 +-
 tools/testing/radix-tree/tag_check.c               |    9 +-
 tools/testing/radix-tree/test.c                    |   92 +-
 tools/testing/radix-tree/test.h                    |   23 +-
 40 files changed, 2311 insertions(+), 1895 deletions(-)
 create mode 100644 tools/testing/radix-tree/benchmark.c
 delete mode 100644 tools/testing/radix-tree/find_next_bit.c
 create mode 100644 tools/testing/radix-tree/idr.c
 create mode 100644 tools/testing/radix-tree/linux/idr.h
 delete mode 100644 tools/testing/radix-tree/linux/notifier.h
Signature · 7 lines
2.10.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>