]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: (k)vrealloc: document concurrency restrictions
authorDanilo Krummrich <dakr@kernel.org>
Thu, 25 Jul 2024 12:54:37 +0000 (14:54 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:22 +0000 (17:52 -0700)
commit8a47496e31d7daec91dfc8d66393777d6fc187a7
treef4daf444f8f120d4f0f2da9ed36537448497a8d1
parentdd63ebced696e2611461b1824078fff93390718a
mm: (k)vrealloc: document concurrency restrictions

Document that concurrent calls to vrealloc() with itself or vfree() for
the same memory allocation are not permitted, since it leads to undefined
behavior.

Consequently, the same applies for kvrealloc(), hence also document it
for kvrealloc().

Link: https://lkml.kernel.org/r/20240725125442.4957-1-dakr@kernel.org
Suggested-by: Christoph Hellwig <hch@infradead.org>
Suggested-by: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/util.c