Max Reitz
8573823f3b
block/export: Conditionally ignore set-context error
...
When invoking block-export-add with some iothread and
fixed-iothread=false, and changing the node's iothread fails, the error
is supposed to be ignored.
However, it is still stored in *errp, which is wrong. If a second error
occurs, the "*errp must be NULL" assertion in error_setv() fails:
qemu-system-x86_64: ../util/error.c:59: error_setv: Assertion
`*errp == NULL' failed.
So if fixed-iothread=false, we should ignore the error by passing NULL
to bdrv_try_set_aio_context().
Fixes: f51d23c80af73c95e0ce703ad06a300f1b3d63ef
("block/export: add iothread and fixed-iothread options")
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210624083825.29224-2-mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2021-07-20 16:49:31 +02:00
..
2021-07-20 16:49:31 +02:00
2021-05-14 16:14:10 +02:00
2020-12-11 17:52:39 +01:00
2019-10-10 10:56:17 +02:00
2020-07-27 12:37:25 +02:00
2021-04-30 12:27:48 +02:00
2021-01-26 14:36:37 +01:00
2021-05-14 16:14:10 +02:00
2021-07-19 17:38:38 +02:00
2021-03-08 15:07:09 -06:00
2021-03-08 15:07:09 -06:00
2021-03-08 15:07:09 -06:00
2021-06-25 10:54:13 +02:00
2021-06-25 14:33:51 +03:00
2020-10-05 10:59:06 +01:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2021-06-29 16:51:21 +02:00
2021-05-14 16:14:10 +02:00
2021-01-26 11:26:54 +01:00
2021-06-18 12:21:22 -05:00
2019-09-13 12:18:37 +02:00
2021-02-15 15:10:14 +01:00
2020-11-15 17:04:40 +01:00
2021-03-19 10:15:06 +01:00
2021-03-18 09:22:55 +00:00
2019-06-12 13:20:20 +02:00
2020-11-09 15:44:21 +01:00
2020-11-09 18:42:47 +01:00
2019-06-12 13:20:20 +02:00
2021-07-06 14:28:55 +01:00
2020-09-16 10:33:48 +01:00
2020-09-07 12:31:31 +02:00
2021-01-28 08:08:45 +01:00
2020-11-17 12:26:48 +01:00
2021-07-06 14:28:55 +01:00
2021-07-09 18:20:27 +02:00
2021-01-08 15:13:38 +00:00
2020-03-16 22:07:42 +01:00
2021-07-09 18:19:00 +02:00
2021-07-20 13:14:45 +02:00
2021-07-12 11:24:00 -05:00
2021-07-09 12:26:05 +02:00
2020-09-07 12:31:31 +02:00
2021-02-02 17:05:38 +01:00
2021-03-08 14:56:55 +01:00
2021-03-08 14:56:55 +01:00
2021-03-08 14:56:55 +01:00
2020-12-18 12:35:55 +01:00
2021-06-25 14:24:24 +03:00
2020-03-06 17:15:38 +01:00
2021-06-14 13:28:50 +01:00
2021-03-11 13:57:08 +00:00
2019-10-26 15:38:06 +02:00
2020-11-24 11:29:41 +01:00
2020-09-15 11:05:13 +02:00
2021-06-02 14:23:20 +02:00
2020-05-13 14:20:31 +02:00
2021-07-09 13:19:11 +02:00
2021-03-08 16:03:21 -06:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2019-04-30 15:29:00 +02:00
2021-03-08 16:03:32 -06:00
2020-07-06 10:34:14 +02:00
2021-06-02 14:23:20 +02:00
2021-02-12 09:45:18 -06:00
2021-07-09 12:26:05 +02:00
2021-07-20 16:11:53 +02:00
2021-06-24 09:49:04 +02:00
2021-07-09 12:26:05 +02:00
2021-03-19 10:15:06 +01:00
2021-02-03 08:14:00 -06:00
2020-09-23 16:07:44 +01:00
2021-06-14 13:28:50 +01:00
2020-08-21 06:18:24 -04:00
2021-03-31 10:44:21 +01:00
2019-06-12 13:20:20 +02:00
2021-06-02 14:23:20 +02:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2021-01-28 08:08:45 +01:00
2020-12-18 12:43:30 +01:00
2021-07-20 16:30:20 +02:00
2019-06-12 13:18:33 +02:00
2021-05-14 16:14:10 +02:00