Re: [PATCH] block: End quiescent sections when a BDS is deleted

2020-10-23 Thread Greg Kurz
On Fri, 23 Oct 2020 16:18:05 +0200 Kevin Wolf wrote: > Am 23.10.2020 um 12:41 hat Greg Kurz geschrieben: > > If a BDS gets deleted during blk_drain_all(), it might miss a > > call to bdrv_do_drained_end(). This means missing a call to > > aio_enable_external() and the AIO context remains

Re: [PATCH] block: End quiescent sections when a BDS is deleted

2020-10-23 Thread Kevin Wolf
Am 23.10.2020 um 12:41 hat Greg Kurz geschrieben: > If a BDS gets deleted during blk_drain_all(), it might miss a > call to bdrv_do_drained_end(). This means missing a call to > aio_enable_external() and the AIO context remains disabled for > ever. This can cause a device to become irresponsive

Re: [PATCH] block: End quiescent sections when a BDS is deleted

2020-10-23 Thread Greg Kurz
; > Type: series > Message-id: 160344969243.4091343.14371338409686732879.st...@bahia.lan > Subject: [PATCH] block: End quiescent sections when a BDS is deleted > > === TEST SCRIPT BEGIN === > #!/bin/bash > git rev-parse base > /dev/null || exit 0 > git config --local diff.r

Re: [PATCH] block: End quiescent sections when a BDS is deleted

2020-10-23 Thread no-reply
] block: End quiescent sections when a BDS is deleted === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback b

[PATCH] block: End quiescent sections when a BDS is deleted

2020-10-23 Thread Greg Kurz
If a BDS gets deleted during blk_drain_all(), it might miss a call to bdrv_do_drained_end(). This means missing a call to aio_enable_external() and the AIO context remains disabled for ever. This can cause a device to become irresponsive and to disrupt the guest execution, ie. hang, loop forever