[PATCH] QIO: Add force_quit to the QIOChannel to ensure QIO exits cleanly in some corner case

2021-11-30 Thread Rao, Lei
We found that the QIO channel coroutine could not be awakened in some corner cases during our stress test for COLO. The patch fixes as follow: #0 0x7fad72e24bf6 in __ppoll (fds=0x5563d75861f0, nfds=1, timeout=, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44 #1

Re: [PATCH for-6.2 v2] block/nbd: forbid incompatible change of server options on reconnect

2021-11-30 Thread Vladimir Sementsov-Ogievskiy
30.11.2021 00:53, Vladimir Sementsov-Ogievskiy wrote: Reconnect feature was never prepared to handle server options changed on reconnect. Let's be stricter and check what exactly is changed. If server capabilities just got richer don't worry. Otherwise fail and drop the established connection.

[PATCH] aio-posix: split poll check from ready handler

2021-11-30 Thread Stefan Hajnoczi
Adaptive polling measures the execution time of the polling check plus handlers called when a polled event becomes ready. Handlers can take a significant amount of time, making it look like polling was running for a long time when in fact the event handler was running for a long time. For

[PATCH v2 4/4] include/sysemu/blockdev.h: remove drive_get_max_devs

2021-11-30 Thread Emanuele Giuseppe Esposito
Remove drive_get_max_devs, as it is not used by anyone. Last use was removed in commit 8f2d75e81d5 ("hw: Drop superfluous special checks for orphaned -drive"). Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Philippe Mathieu-Daudé --- blockdev.c| 17 -

[PATCH v2 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def

2021-11-30 Thread Emanuele Giuseppe Esposito
drive_add is only used in softmmu/vl.c, so it can be a static function there, and drive_def is only a particular use case of qemu_opts_parse_noisily, so it can be inlined. Also remove drive_mark_claimed_by_board, as it is only defined but not implemented (nor used) anywhere. Signed-off-by:

[PATCH v2 1/4] block_int: make bdrv_backing_overridden static

2021-11-30 Thread Emanuele Giuseppe Esposito
bdrv_backing_overridden is only used in block.c, so there is no need to leave it in block_int.h Signed-off-by: Emanuele Giuseppe Esposito --- block.c | 4 +++- include/block/block_int.h | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c

[PATCH v2 2/4] include/sysemu/blockdev.c: introduce block_if_name

2021-11-30 Thread Emanuele Giuseppe Esposito
Add a getter function for the if_name array, so that also outside functions can access it. Signed-off-by: Emanuele Giuseppe Esposito --- blockdev.c| 5 + include/sysemu/blockdev.h | 1 + 2 files changed, 6 insertions(+) diff --git a/blockdev.c b/blockdev.c index

[PATCH v2 0/4] block: minor refactoring in preparation to the block layer API split

2021-11-30 Thread Emanuele Giuseppe Esposito
These patches are taken from my old patches and feedback of my series "block layer: split block APIs in global state and I/O". The reason for a separate series is that the original one is already too long, and these patches are just refactoring the code, mainly deleting or moving functions in

Re: [PATCH v5 00/31] block layer: split block APIs in global state and I/O

2021-11-30 Thread Emanuele Giuseppe Esposito
On 29/11/2021 14:32, Stefan Hajnoczi wrote: On Wed, Nov 24, 2021 at 01:43:47AM -0500, Emanuele Giuseppe Esposito wrote: v5 -> v6: * In short, apply all Hanna's comments. More in details, the following functions in the following headers have been moved: block-backend: