aio: account I/O wait time properly
commit4c613a353e2811095cfc3de66be16c266c55ad82
authorJeff Moyer <jmoyer@redhat.com>
Wed, 17 Oct 2007 06:27:20 +0000 (16 23:27 -0700)
committerOliver Pinter <oliver.pntr@gmail.com>
Mon, 14 Apr 2008 18:16:39 +0000 (14 20:16 +0200)
tree762760dcb640aa99989fc0c2b5ec0503550e1b75
parentf6e09ca7dbc514dd0e5ffa28bdebf780ae6053d5
aio: account I/O wait time properly

Some months back I proposed changing the schedule() call in
read_events to an io_schedule():
http://osdir.com/ml/linux.kernel.aio.general/2006-10/msg00024.html
This was rejected as there are AIO operations that do not initiate
disk I/O.  I've had another look at the problem, and the only AIO
operation that will not initiate disk I/O is IOCB_CMD_NOOP.  However,
this command isn't even wired up!

Given that it doesn't work, and hasn't for *years*, I'm going to
suggest again that we do proper I/O accounting when using AIO.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Acked-by: Zach Brown <zach.brown@oracle.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Suparna Bhattacharya <suparna@in.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
fs/aio.c