From patchwork Tue Sep 8 12:10:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 11763253 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 95A2A618 for ; Tue, 8 Sep 2020 12:12:00 +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 333DC206B8 for ; Tue, 8 Sep 2020 12:12:00 +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="TSe2Oukq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 333DC206B8 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]:48724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFcTf-0001tb-0E for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 Sep 2020 08:11:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFcSS-0000Fi-Gq; Tue, 08 Sep 2020 08:10:44 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:34461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFcSN-0005bZ-RB; Tue, 08 Sep 2020 08:10:44 -0400 Received: by mail-pf1-x430.google.com with SMTP id v196so10800530pfc.1; Tue, 08 Sep 2020 05:10:39 -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=yrAA7x2FEGJebk4mIL1oqQkafJ2iJAdtvrejeq1qeOU=; b=TSe2OukqtfhmVzIobZKsZwcueQrbpygVNmAou/CaGBjb5B7eXSk/7uSNWeLLUghvSK hnGIc3h5mmrNV6nuPdVv6fTRVKm+4N/3c65CK42pcIq9l31pDdzvnSjhZPBA0P6qULyu KPmBqf+JIva43I+4WRYY7QYxLyb6+ILI37hFD4IeoKKXO6SoihFNQFS05/s+7HWXeZ3E Qfq20LMxE4KQnHrssZ6Q79tSOQO1UoeM6RP3kGW6iD4ZQPoPZ53qzamgXYncjnq7zC2A HK1+gSmKK1QIBHYkEdV3EMnvepANZnE4JlY4s/4de5SVrIo7z2PM3E6GnxL+73m84oIu reHQ== 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=yrAA7x2FEGJebk4mIL1oqQkafJ2iJAdtvrejeq1qeOU=; b=XgMvlbyYb6fwXv2NQUZJQLhVUraqwjF6yptCO5V+D3f8VczWCWkRDRw8jJA5iwmpRI x1qkmICPU1kROUEY/JWPA4r9kg11b0KTfwEMoA4ZgZlTMHvc6XrEhMTkIKDPTZgEPlkv x1WWMGsNdWF4boeYjsRaOa3PJjskMO3zT3m3CnKHaftcJyhGd9ZnAZ0c/MP3BaxCHYAs zQdDTThN507n8s2wobGrOqHJSS75cuJcWeuGHxmgRR/WVGu0x6Erzy8+63oDOqCozQ6u 7nInIF678YFpUh++iH4Tg+Z8/KdPG4oZZsbiaJ5IJQ2hXuyu/KMDtWS+/UR2ZmfuUICu YRiQ== X-Gm-Message-State: AOAM532yZvUDRJJZIKTV3BNYHlNn9nC/rVI78iQXFaS3oQuNUfbUecoO 2bjhUw58UVEdT9nF/0MsCpGpjWdP3WC4s+4m X-Google-Smtp-Source: ABdhPJwvpGCzrcj/w++hma+ObguP6n5scFL2hWjFYJGeqVkP/W5W1brtXUMpoh9NKUWbq8TFT15f9A== X-Received: by 2002:aa7:98cc:: with SMTP id e12mr24198778pfm.66.1599567037528; Tue, 08 Sep 2020 05:10:37 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id t15sm18731657pfl.175.2020.09.08.05.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 05:10:36 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH 0/2] rcu: add uninit destructor for rcu so the pending calls be called before the process exit Date: Tue, 8 Sep 2020 20:10:20 +0800 Message-Id: <20200908121022.11-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::430; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x430.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 calls are close and removing temp files Also fixes test-logging.c on msys2/mingw, on windows if the file doesn't clos= ed, you can not remove i Yonggang Luo (2): logging: Fixes memory leak in test-logging.c rcu: add uninit destructor for rcu so the pending calls be called before the process exit include/qemu/rcu.h | 5 +++++ tests/test-logging.c | 4 +++- util/rcu.c | 28 ++++++++++++++++++++++++---- 3 files changed, 32 insertions(+), 5 deletions(-) --=20 2.28.0.windows.1