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)
commitac23d1a964600bb9c14b5048bdf4f18ae13226f4
treeef2d695f03415c0c47fe125fa3869d71715aca1a
parent1f2cfdd349b7647f438c1e552dc1b983da86d830
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