On 12/02/2016 13:50, Dr. David Alan Gilbert wrote: > I'll admit to not really understanding what the difference is > between bh and coroutine context; I'd thought if it was all > in the main thread stuff was safe.
It's arguably a bug in the block layer code. It assumes that all code called from a coroutine wants not to block. Moving stuff to a bottom half tells the block layer that you want bdrv_invalidate_cache_all to block. Paolo
