Skip to content

Commit 39fa003

Browse files
JeffMoyertorvalds
authored andcommitted
aio: fix misleading comments
The FIXME comments are inaccurate. The locking comment over lookup_ioctx() is wrong. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Shen Feng <shen@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 68ab3d8 commit 39fa003

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎fs/aio.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
277277
if (ctx->max_reqs == 0)
278278
goto out_cleanup;
279279

280-
/* now link into global list. kludge. FIXME */
280+
/* now link into global list. */
281281
write_lock(&mm->ioctx_list_lock);
282282
ctx->next = mm->ioctx_list;
283283
mm->ioctx_list = ctx;
@@ -553,9 +553,6 @@ int aio_put_req(struct kiocb *req)
553553
return ret;
554554
}
555555

556-
/* Lookup an ioctx id. ioctx_list is lockless for reads.
557-
* FIXME: this is O(n) and is only suitable for development.
558-
*/
559556
static struct kioctx *lookup_ioctx(unsigned long ctx_id)
560557
{
561558
struct kioctx *ioctx;

0 commit comments

Comments
 (0)