Max Reitz
78c81a3f10
block/nbd: Fix hang in .bdrv_close()
...
When nbd_close() is called from a coroutine, the connection_co never
gets to run, and thus nbd_teardown_connection() hangs.
This is because aio_co_enter() only puts the connection_co into the main
coroutine's wake-up queue, so this main coroutine needs to yield and
wait for connection_co to terminate.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200122164532.178040-2-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2020-02-20 16:43:42 +01:00
..
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-02-20 16:43:42 +01:00
2019-10-10 10:56:18 +02:00
2020-01-27 17:19:53 +01:00
2020-01-06 13:43:06 +01:00
2019-06-12 13:18:33 +02:00
2019-10-14 17:12:48 +02:00
2020-02-18 11:55:40 +01:00
2019-10-28 12:00:07 +01:00
2019-11-04 09:21:45 +01:00
2019-09-16 14:48:30 +02:00
2019-09-16 14:48:30 +02:00
2020-02-18 10:53:56 +01:00
2020-02-18 11:55:40 +01:00
2019-09-13 12:18:37 +02:00
2019-10-28 12:05:30 +01:00
2019-05-13 08:58:55 +02:00
2019-09-16 15:31:12 +02:00
2019-11-18 16:01:34 -06:00
2019-06-12 13:20:20 +02:00
2018-12-14 11:52:40 +01:00
2019-09-16 14:48:30 +02:00
2019-06-12 13:20:20 +02:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2020-02-18 11:55:40 +01:00
2019-10-28 12:00:07 +01:00
2020-02-18 10:54:02 +01:00
2020-02-07 16:46:59 +00:00
2019-06-12 13:18:33 +02:00
2020-01-27 17:19:53 +01:00
2020-01-13 16:41:45 +00:00
2020-01-30 20:59:41 +00:00
2020-02-18 11:55:40 +01:00
2020-02-20 16:43:42 +01:00
2019-10-28 12:00:07 +01:00
2019-10-14 17:12:48 +02:00
2019-10-28 11:34:35 +01:00
2019-10-28 14:40:01 +00:00
2018-02-09 05:05:11 +01:00
2020-02-20 16:43:42 +01:00
2020-02-18 10:53:56 +01:00
2019-10-26 15:38:06 +02:00
2020-02-18 10:53:56 +01:00
2020-02-18 10:53:56 +01:00
2020-02-06 13:47:45 +01:00
2020-02-18 10:53:56 +01:00
2020-02-20 16:43:42 +01:00
2019-11-07 14:37:46 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:08:45 +01:00
2019-04-30 15:29:00 +02:00
2020-02-18 11:55:40 +01:00
2019-10-28 12:05:30 +01:00
2019-10-28 12:00:07 +01:00
2020-02-18 11:55:40 +01:00
2019-10-28 12:00:07 +01:00
2019-12-18 08:43:19 +01:00
2019-10-28 12:00:07 +01:00
2019-09-10 08:58:43 +02:00
2020-01-06 13:43:06 +01:00
2020-02-18 11:55:40 +01:00
2020-01-30 20:59:42 +00:00
2019-10-28 12:00:07 +01:00
2019-06-12 13:20:20 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2019-04-30 15:29:00 +02:00
2019-10-28 12:00:07 +01:00
2019-10-28 12:00:07 +01:00
2020-02-18 10:53:56 +01:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00