diff options
-rw-r--r-- | fs/aio.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -277,7 +277,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events) | |||
277 | if (ctx->max_reqs == 0) | 277 | if (ctx->max_reqs == 0) |
278 | goto out_cleanup; | 278 | goto out_cleanup; |
279 | 279 | ||
280 | /* now link into global list. kludge. FIXME */ | 280 | /* now link into global list. */ |
281 | write_lock(&mm->ioctx_list_lock); | 281 | write_lock(&mm->ioctx_list_lock); |
282 | ctx->next = mm->ioctx_list; | 282 | ctx->next = mm->ioctx_list; |
283 | mm->ioctx_list = ctx; | 283 | mm->ioctx_list = ctx; |
@@ -553,9 +553,6 @@ int aio_put_req(struct kiocb *req) | |||
553 | return ret; | 553 | return ret; |
554 | } | 554 | } |
555 | 555 | ||
556 | /* Lookup an ioctx id. ioctx_list is lockless for reads. | ||
557 | * FIXME: this is O(n) and is only suitable for development. | ||
558 | */ | ||
559 | static struct kioctx *lookup_ioctx(unsigned long ctx_id) | 556 | static struct kioctx *lookup_ioctx(unsigned long ctx_id) |
560 | { | 557 | { |
561 | struct kioctx *ioctx; | 558 | struct kioctx *ioctx; |