aio: store event at final iocb_put()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Mar 2019 00:49:55 +0000 (19:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:59 +0000 (09:58 +0200)
commitaab66dfb757aa5b211ec6b0c322b42f4ef5ab34f
tree41d7e576269fbea8dc943ec75fb42df98492158a
parentc20202c51d2b6703a4e539235f892f34daabd791
aio: store event at final iocb_put()

commit 2bb874c0d873d13bd9b9b9c6d7b7c4edab18c8b4 upstream.

Instead of having aio_complete() set ->ki_res.{res,res2}, do that
explicitly in its callers, drop the reference (as aio_complete()
used to do) and delay the rest until the final iocb_put().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/aio.c