Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-61239

Make WITH_GRAPH_RDLOCK_GUARD() fully checked

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • rhel-10.0.beta
    • qemu-kvm / Storage
    • None
    • sst_virtualization_storage
    • ssg_virtualization
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      Upstream clang 18 (and backports to clang 17 in Fedora and RHEL) implemented support for _attribute_((cleanup())) in its Thread Safety Analysis, so we can now actually have a proper implementation of WITH_GRAPH_RDLOCK_GUARD() that understands when we acquire and when we release the lock.

      The behaviour of QEMU should not be changed with this, we just can catch more locking bugs during the build.

            kwolf@redhat.com Kevin Wolf
            kwolf@redhat.com Kevin Wolf
            virt-maint virt-maint
            Aihua Liang Aihua Liang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: