From patchwork Tue Sep 8 12:29:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11763309 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39DEB112E for ; Tue, 8 Sep 2020 12:33:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D507F22204 for ; Tue, 8 Sep 2020 12:33:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BKtC7qR8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D507F22204 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFcoC-00040h-Vr for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 Sep 2020 08:33:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFclC-0006Rv-K7; Tue, 08 Sep 2020 08:30:06 -0400 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:39430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFclA-0007rX-D5; Tue, 08 Sep 2020 08:30:06 -0400 Received: by mail-pj1-x1044.google.com with SMTP id s2so7950817pjr.4; Tue, 08 Sep 2020 05:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EKG1apOrW8tjor/2mLwmR3nr+4172Hc8gwfm/Y5sTeg=; b=BKtC7qR8e5qiLJNAaOyPC8svfaIgJHIiNFIwR0e20uLvahbgK0HYka1O7q0RcQtzqE yw6/SGbv7nSe+7G8oULZvuIgra1sZBvpJ3eS/u6w8BiFf9XptOOy86JwOeWbiHfAi5V9 biPVB/bToLAyEDwnuxGt0/9IoS2XUUfbSBhzVDZJ0ac0VeOifraIiR6jpwcRYoTCO+HZ Dy0zIxIGuQHTymrw7hTT3TmUssL9hmBE679w6HHNmO3JVeJfM2BSfVhjm/kFkp6L+U0u kS0/a/KNXpiuyKjgo1sL7ORX30ZkQUfrgZddbIsNdGMBiEBgad64yTGmi240A0NMytw8 4pYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EKG1apOrW8tjor/2mLwmR3nr+4172Hc8gwfm/Y5sTeg=; b=DayriUVOEbODw0ljrtj/PxIn1zYpn8wDwBP6YwKNcYq9AxTSiFtnFDsWNtZhGw1M+9 McSEquBmGoIZzT7CI65uHK41VuRM39ikDl0FswhDIH/FfcHJyvv9HpQ+PvusBCPEqrEY 1dM/B8IkSWlE5wWR/tG4kMONd8Fp8jkK3JcPrQOCYG+iMgRN0KM4+H8UdnHQiIbDiZjt U+39ijqzYhNJSf+zeZHhEn2lk2VUiyrUDYXQPsQpCU0DBQktUyTRXPiUhLzaJoQkFdy+ VjZuYfM1XWQm2ZxWXYumvafhe2QZJ6bGcHURCNCcBnCs/XNn2VdSOOgv59zD9T2bpacK yOiw== X-Gm-Message-State: AOAM532995xFZeQRFdrlffejiYjkIYmSzukV6osjrZcHprUXISt3G/u3 1H8DqIaC/ByhJDzm6be73H7YdyIyoYtHJl2Y X-Google-Smtp-Source: ABdhPJwLPp1M+u8WQaI2/t40aV9+YTEc9hpovWgaENy+sgPK/vIjfzMi9fi97UinUQMUXneQW15LkQ== X-Received: by 2002:a17:90b:510:: with SMTP id r16mr3748686pjz.75.1599568201356; Tue, 08 Sep 2020 05:30:01 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id d8sm14833887pgt.19.2020.09.08.05.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 05:30:00 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v2 0/2] rcu: add uninit destructor for rcu Date: Tue, 8 Sep 2020 20:29:42 +0800 Message-Id: <20200908122944.414-1-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=luoyonggang@gmail.com; helo=mail-pj1-x1044.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Trivial , Daniel Brodsky , Yonggang Luo , Stefan Hajnoczi , Juan Quintela Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" This is necessary if the pending rcu calls are closing and removing temp files. This also provide a function void rcu_wait_finished(void); to fixes test-logging.c test failure on msys2/mingw. On windows if the file doesn't closed, you can not remove it. Yonggang Luo (2): logging: Fixes memory leak in test-logging.c rcu: add uninit destructor for rcu include/qemu/rcu.h | 5 +++++ tests/test-logging.c | 4 +++- util/rcu.c | 28 ++++++++++++++++++++++++---- 3 files changed, 32 insertions(+), 5 deletions(-)