Commit 39fa0031 authored by Jeff Moyer's avatar Jeff Moyer Committed by Linus Torvalds

aio: fix misleading comments

The FIXME comments are inaccurate.
The locking comment over lookup_ioctx() is wrong.
Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarZach Brown <zach.brown@oracle.com>
Signed-off-by: default avatarShen Feng <shen@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 68ab3d88
...@@ -277,7 +277,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events) ...@@ -277,7 +277,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
if (ctx->max_reqs == 0) if (ctx->max_reqs == 0)
goto out_cleanup; goto out_cleanup;
/* now link into global list. kludge. FIXME */ /* now link into global list. */
write_lock(&mm->ioctx_list_lock); write_lock(&mm->ioctx_list_lock);
ctx->next = mm->ioctx_list; ctx->next = mm->ioctx_list;
mm->ioctx_list = ctx; mm->ioctx_list = ctx;
...@@ -553,9 +553,6 @@ int aio_put_req(struct kiocb *req) ...@@ -553,9 +553,6 @@ int aio_put_req(struct kiocb *req)
return ret; return ret;
} }
/* Lookup an ioctx id. ioctx_list is lockless for reads.
* FIXME: this is O(n) and is only suitable for development.
*/
static struct kioctx *lookup_ioctx(unsigned long ctx_id) static struct kioctx *lookup_ioctx(unsigned long ctx_id)
{ {
struct kioctx *ioctx; struct kioctx *ioctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment