]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
pin iocb through aio.
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Mar 2019 01:22:54 +0000 (20:22 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 2 Jul 2019 10:07:53 +0000 (12:07 +0200)
commit20f2d676f98f4094a07a707aea7822b0f7329295
tree4847d04b7f96b1febb85238f867c92d7bfc18dc7
parent5db6bd07d544390b1666cc11fe4e5ba2e5d4625b
pin iocb through aio.

BugLink: https://bugs.launchpad.net/bugs/1830929
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/aio.c