Skip to content

qemu/queue.h: clear linked list pointers on remove

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qemu/queue.h: clear linked list pointers on removeinclude/qemu/queue.h+15 -42 replies
2/2aio-posix: remove confusing QLIST_SAFE_REMOVE()util/aio-posix.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] qemu/queue.h: clear linked list pointers on remove

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: [email protected]

          ("[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(-)
Signature · 1 line
2.24.1