Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jeff Moyer and committed by
Linus Torvalds
39fa0031 68ab3d88

+1 -4
+1 -4
fs/aio.c
··· 277 277 if (ctx->max_reqs == 0) 278 278 goto out_cleanup; 279 279 280 - /* now link into global list. kludge. FIXME */ 280 + /* now link into global list. */ 281 281 write_lock(&mm->ioctx_list_lock); 282 282 ctx->next = mm->ioctx_list; 283 283 mm->ioctx_list = ctx; ··· 553 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 556 static struct kioctx *lookup_ioctx(unsigned long ctx_id) 560 557 { 561 558 struct kioctx *ioctx;