]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25cedb762830f419a54c39ae31c0d6750c67638d
treeef7d685783dc69524d1512dd6273fac127c8962b
parentf0df8b66b81dce259ae0fb659ea68c2255a36a09
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