• Ken Chen's avatar
    [PATCH] aio: remove superfluous kiocb member initialization · 212079cf
    Ken Chen authored
    This patch removes superfluous kiocb member initialization in the AIO
    allocation and deallocation path.  For example, in really_put_req(),
    right before kiocb is returned to slab, 5 variables are reset to NULL.
    The same variables will be initialized at the kiocb allocation time,
    so why bother reset them knowing that they will be set to valid data
    at alloc time?  Another example: ki_retry is initialized in __aio_get_req,
    but is initialized again in io_submit_one.
    Signed-off-by: default avatarKen Chen <kenneth.w.chen@intel.com>
    Cc: Benjamin LaHaise <bcrl@kvack.org>
    Cc: Suparna Bhattacharya <suparna@in.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    212079cf
aio.c 43.8 KB