diff options
author | 2025-07-10 15:36:18 +0800 | |
---|---|---|
committer | 2025-07-10 17:08:27 +0800 | |
commit | d31fbdc4c7252846ea80235db8c1a8c932da9d39 (patch) | |
tree | f58caf37a103e75c366e8f651786e7ac2de4f91e /rust/pin-init/internal/src | |
parent | erofs: address D-cache aliasing (diff) | |
download | wireguard-linux-d31fbdc4c7252846ea80235db8c1a8c932da9d39.tar.xz wireguard-linux-d31fbdc4c7252846ea80235db8c1a8c932da9d39.zip |
erofs: allow readdir() to be interrupted
In a quick slow device, readdir() may loop for long time in large
directory, let's give a chance to allow it to be interrupted by
userspace.
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250710073619.4083422-1-chao@kernel.org
[ Gao Xiang: move cond_resched() to the end of the while loop. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions