pin iocb through aio.
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Mar 2019 01:22:54 +0000 (20:22 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commiteffc002cf28053eef3d6d20e5676fd7739890f57
tree52b5cf932bbf18762d607c67c13549c6c2ab9aab
parent37345fc331a3ba1149717d4990caa75dc0932499
pin iocb through aio.

commit b53119f13a04879c3bf502828d99d13726639ead upstream.

aio_poll() is not the only case that needs file pinned; worse, while
aio_read()/aio_write() can live without pinning iocb itself, the
proof is rather brittle and can easily break on later changes.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name 0010-pin-iocb-through-aio.patch
fs/aio.c