lkml.org 
[lkml]   [2021]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] aio: convert active_reqs into a hashtable


On Sun, Sep 19 2021 at 10:56:45 AM -0400, Benjamin LaHaise
<bcrl@kvack.org> wrote:
> You're doing this wrong. If you want faster cancellations, stash an
> index
> into iocb->aio_key to index into an array with all requests rather
> than
> using a hash table.

Would that not mean that, we would have to keep track of the indices of
the
array that are not being held by an `aio_kiocb`?


\
 
 \ /
  Last update: 2021-09-23 15:01    [W:0.130 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site