mbox series

[v2,0/2] maple_tree: mas_wr_append() fix ups

Message ID 20230819004356.1454718-1-Liam.Howlett@oracle.com (mailing list archive)
Headers show
Series maple_tree: mas_wr_append() fix ups | expand

Message

Liam R. Howlett Aug. 19, 2023, 12:43 a.m. UTC
There is a potential of an update causing issue with a reader when
appending, so disable the append operation when readers a present.

The code was also missing some documentation, tracing, and some cleanup
was possible.  These changes are in the second patch as there's no
compelling reason to require a difficult backport.

Changes since v1:
 - Added fixes tag to the first patch

v1: https://lore.kernel.org/linux-mm/20230817191505.1170876-1-Liam.Howlett@oracle.com/

Liam R. Howlett (2):
  maple_tree: Disable mas_wr_append() when other readers are possible
  maple_tree: Clean up mas_wr_append()

 lib/maple_tree.c | 41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)