diff options
author | Jingbo Xu <[email protected]> | 2022-11-14 20:19:43 +0800 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2022-11-14 23:48:38 +0800 |
commit | 37020bbb71d911431e16c2c940b97cf86ae4f2f6 (patch) | |
tree | 4d62cb1eda9dd8b6ee2f1059a9746492412c11c4 /drivers/fpga/xilinx-spi.c | |
parent | 39bfcb8138f6dc3375f23b1e62ccfc7c0d83295d (diff) |
erofs: fix missing xas_retry() in fscache mode
The xarray iteration only holds the RCU read lock and thus may encounter
XA_RETRY_ENTRY if there's process modifying the xarray concurrently.
This will cause oops when referring to the invalid entry.
Fix this by adding the missing xas_retry(), which will make the
iteration wind back to the root node if XA_RETRY_ENTRY is encountered.
Fixes: d435d53228dd ("erofs: change to use asynchronous io for fscache readpage/readahead")
Suggested-by: David Howells <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Jia Zhu <[email protected]>
Signed-off-by: Jingbo Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions