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>
Tue, 14 Dec 2021 04:06:53 +0000 (23:06 -0500)
commit1c9f4b00b3cf6f5ebb0941a5e5c8d1a3f0a9ba59
tree2ed5e9c2b89eb8f8d1f20cf9c3c6750db8aaa5f8
parent5472f14a37421d1bca3dddf33cabd3bd6dbefbbc
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