block: remove bs from lists before closing
authorAnton Kuchin <antonkuchin@yandex-team.ru>
Tue, 7 May 2019 08:12:56 +0000 (11:12 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 May 2019 14:45:40 +0000 (16:45 +0200)
commit30c321f97fa5898a5ad71070af6ce271fbdba347
treec85242990bfba8652fed619372996f7957478c4f
parentefb4f3b62c69383a7308d7b739a3193e7c0ccae8
block: remove bs from lists before closing

Close involves flush that can be performed asynchronously and bs
must be protected from being referenced before it is deleted.

Signed-off-by: Anton Kuchin <antonkuchin@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c