QLIST_REMOVE() and friends leave dangling linked list pointers in the node that was removed. This makes it impossible to decide whether a node is currently in a list or not. It also makes debugging harder.
Based-on: 20200222085030.1760640-1-stefa...@redhat.com ("[PULL 00/31] Block patches") Stefan Hajnoczi (2): qemu/queue.h: clear linked list pointers on remove aio-posix: remove confusing QLIST_SAFE_REMOVE() include/qemu/queue.h | 19 +++++++++++++++---- util/aio-posix.c | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) -- 2.24.1