summaryrefslogtreecommitdiff
path: root/rust/kernel/task.rs
diff options
context:
space:
mode:
authorMohammed Anees <pvmohammedanees2003@gmail.com>2024-11-12 17:08:34 +0530
committerChristian Brauner <brauner@kernel.org>2024-11-12 14:36:45 +0100
commitc4d7d90747f4e8b528c8cd0a2d9ac01dc4a9339e (patch)
treea9c9c2fd35981accd1dd9705f10eced7c5551c08 /rust/kernel/task.rs
parent1c82587cb57687de3f18ab4b98a8850c789bedcf (diff)
fs:aio: Remove TODO comment suggesting hash or array usage in io_cancel()
The comment suggests a hash or array approach to store the active requests. Currently it iterates through all the active requests and when found deletes the requested request, in the linked list. However io_cancel() isn’t a frequently used operation, and optimizing it wouldn’t bring a substantial benefit to real users and the increased complexity of maintaining a hashtable for this would be significant and will slow down other operation. Therefore remove this TODO to avoid people spending time improving this. Signed-off-by: Mohammed Anees <pvmohammedanees2003@gmail.com> Link: https://lore.kernel.org/r/20241112113906.15825-1-pvmohammedanees2003@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/kernel/task.rs')
0 files changed, 0 insertions, 0 deletions