Re: [PATCH] aio: convert active_reqs into a hashtable

From: Christoph Hellwig
Date: Tue Sep 14 2021 - 07:46:43 EST


On Tue, Sep 14, 2021 at 05:46:25AM -0400, Hamza Mahfooz wrote:
> Commit 833f4154ed56 ("aio: fold lookup_kiocb() into its sole caller")
> suggests that, the fact that active_reqs is a linked-list means aio_kiocb
> lookups in io_cancel() are inefficient. So, to get faster lookups (on
> average) while maintaining similar insertion and deletion characteristics,
> turn active_reqs into a hashtable.

What workload cares about AIO cancellation performance?