]> git.baikalelectronics.ru Git - kernel.git/commit
aio: don't bother with unmapping when aio_free_ring() is coming from exit_aio()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 21 Apr 2012 01:49:41 +0000 (21:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 21 Apr 2012 05:58:16 +0000 (01:58 -0400)
commit780b10e3b449ff2029e14c887fafda51469a4543
treeb7ecc2a4706ab25b0d06af7bac5fdf5d0fc7acb5
parentf32dc8db2763921be9f9f6e2662e76ce8021d585
aio: don't bother with unmapping when aio_free_ring() is coming from exit_aio()

... since exit_mmap() is coming and it will munmap() everything anyway.
In all other cases aio_free_ring() has ctx->mm == current->mm; moreover,
all other callers of vm_munmap() have mm == current->mm, so this will
allow us to get rid of mm argument of vm_munmap().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c