aio: block exit_aio() until all context requests are completed
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 3 Sep 2014 09:45:44 +0000 (17:45 +0800)
committerBenjamin LaHaise <bcrl@kvack.org>
Thu, 4 Sep 2014 20:54:47 +0000 (16:54 -0400)
commit6098b45b32e6baeacc04790773ced9340601d511
treeef7d685783dc69524d1512dd6273fac127c8962b
parent2ff396be602f10b5eab8e73b24f20348fa2de159
aio: block exit_aio() until all context requests are completed

It seems that exit_aio() also needs to wait for all iocbs to complete (like
io_destroy), but we missed the wait step in current implemention, so fix
it in the same way as we did in io_destroy.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Cc: stable@vger.kernel.org
fs/aio.c