commit | a839180edd2b52be9fb3aa2b51b44e2fafcd65a8 | [log] [tgz] |
---|---|---|
author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | Thu Apr 04 14:20:48 2019 +0100 |
committer | Will Deacon <will.deacon@arm.com> | Fri Apr 26 14:57:59 2019 +0100 |
tree | fa7cbf22a8f751bde124e27b148e8c20aca1ef96 | |
parent | 200cb82311bb79b18994b2bfbad6b090eee7f0d0 [diff] |
disk/aio: Cancel AIO thread on cleanup If the AIO thread is still calling io_getevents() while the exit path calls io_destroy(), it will segfault. Wait for the thread to finish before destroying the context. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>