]> git.baikalelectronics.ru Git - kernel.git/commit
XArray: Document the locking requirement for the xa_state
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 14 Dec 2021 04:03:54 +0000 (23:03 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 3 Feb 2022 20:56:50 +0000 (15:56 -0500)
commit360871e0425d772fa36b870ae8b30bc433115d9a
treeef2d695f03415c0c47fe125fa3869d71715aca1a
parent51f44a0960632d3e1b8a25d3f969cc7d255cefe8
XArray: Document the locking requirement for the xa_state

It wasn't obvious to all readers that it's unsafe to reuse an xa_state
after dropping the xas_lock() or the rcu_read_lock().

Reported-by: Charan Teja Kalla <charante@codeaurora.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Documentation/core-api/xarray.rst