]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] aio: optimize io_submit_one()
authorKen Chen <kenneth.w.chen@intel.com>
Sun, 1 May 2005 15:59:16 +0000 (08:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:16 +0000 (08:59 -0700)
commit954d3e95369cf73b4bc1e570729f68264a0e6fe0
tree542c6435428848f02a0eb060a83b3dd1a7f90083
parent644d3a088a3b862ed0b57c286cf58a6bd338ce08
[PATCH] aio: optimize io_submit_one()

This patch optimizes io_submit_one to call aio_run_iocb() directly if
ctx->run_list is empty.  When the list is empty, the operation of adding to
the list, then call to __aio_run_iocbs() is unnecessary because these
operations are done in one atomic step.  ctx->run_list always has only one
element in this case.  This optimization speeds up industry standard db
transaction processing benchmark by 0.2%.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Suparna Bhattacharya <suparna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c