]> 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:21 +0000 (17:52 -0700)
commitf12a9702d5ef586bc4108bea268c3dabb848d48b
treeeeb3150c57a2adb03e4601cef006cca330b95eef
parent012d84761204f5de84c6d92afea7468bbde1cd06
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
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Suggested-by: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c