Jan Kara 9b171e0c74 ocfs2: fix possible use-after-free with AIO
Running AIO is pinning inode in memory using file reference. Once AIO
is completed using aio_complete(), file reference is put and inode can
be freed from memory. So we have to be sure that calling aio_complete()
is the last thing we do with the inode.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-26 02:46:12 -05:00
..
2013-02-22 23:31:31 -05:00
2011-07-25 14:30:23 -04:00
2011-07-28 02:07:16 -07:00
2010-09-10 09:18:15 -07:00
2013-02-26 02:46:10 -05:00
2009-04-03 11:39:16 -07:00
2011-07-25 14:58:15 -07:00
2013-02-26 02:46:10 -05:00
2012-05-29 23:28:40 -04:00
2011-07-28 02:07:16 -07:00
2013-02-22 23:31:31 -05:00
2012-07-30 17:25:16 -07:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2013-02-26 02:46:10 -05:00
2013-02-22 23:31:31 -05:00
2012-07-14 16:34:47 +04:00
2008-02-03 17:33:42 +02:00
2011-05-23 23:37:20 -07:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-01-04 08:56:31 -06:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00
2008-01-25 15:05:46 -08:00
2012-01-03 22:55:02 -05:00
2012-01-03 22:55:02 -05:00