From patchwork Tue Sep 8 15:10:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yonggang Luo X-Patchwork-Id: 1359786 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ccJJjZIR; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Bm7sW16m6z9sSJ for ; Wed, 9 Sep 2020 01:11:42 +1000 (AEST) Received: from localhost ([::1]:55902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFfHX-0001pP-Ck for incoming@patchwork.ozlabs.org; Tue, 08 Sep 2020 11:11:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFfH6-0001pG-S2; Tue, 08 Sep 2020 11:11:12 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:37674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFfH5-0005jE-By; Tue, 08 Sep 2020 11:11:12 -0400 Received: by mail-pf1-x442.google.com with SMTP id w7so11202854pfi.4; Tue, 08 Sep 2020 08:11:10 -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=Pi4fdZkK98uzzZ0ksfj6pMVZi4LQv4h+3M/IR0O7QLM=; b=ccJJjZIRgwenw12uFiihAAcJqiPjrAunSSna1eUn9WZayHi8FgiUC0uKxx9+IbhXDO idSuq/iHV2vMSG9ihy1d6cAzGUqHP5Q/i4zq1dzfwj79yeKuMdOgAm7ds1wQe29xhCFR QwoM01J1un4zosD8Qaxu///ZIlZsFKlGJdYOzgAVwyEMa2Kl6kNN9l5gSyGgPDiL0rLL Zr3lAagTy/uTS5gX2U0zf22XEQnj3woXlNjBU02oPkSpFv2m6MXwE72ybMW5U1a/wYBS NQPIe4HSCrLRLXdunaL408nkRxZW6iaRLMKS00OwIJHpwN9Rsq9zX1MVEkl2L+3Wc5Ze flGA== 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=Pi4fdZkK98uzzZ0ksfj6pMVZi4LQv4h+3M/IR0O7QLM=; b=t35UZC9bVroMGpqQBE7jxm/1mlQEZZwBt5u29HfKfL95S5Xs0jzJJ5EuYYMt3vQbL+ rKF+y/7kHauYUkyrqKcnTmVIKmkjCL1O1ti/NB8Te9hrLeBN5SqIVTyBIEn3AFpmTs/I 1uACCl9pbEUMGzvTObO6kdRV179W+pbWR9jYNByYA2nZnC+25tGY2zCQx8O8Y3gEsqoh zNN6GLvZpSyeb6EAGiq6kT2L3O/X/90zNUMmRX2iioplqQDl+FVZwZa3D7/ibSiVWBAQ 6NWMYyNYaC+9ZIPH4ZFa7zE1JI/4fZ13I9qQ9//6Qdcvv5KjRxx7EbAMnNwsh/5DDYZU /uXg== X-Gm-Message-State: AOAM532vdwFjMlOLsXlRzxcb0N5KFsqRFL/5Vbe0M1yPG82ND+2gVev8 HRu8Oht01PVdLmQJUUD5+I9ajMfp6cEFdMid X-Google-Smtp-Source: ABdhPJxIIJGzA+eHF0YY0HPC+O+OXtVcMePaq8YS/MOgUPynMdg2OBFNbVXVEY9a9A9CtsPExR6i5g== X-Received: by 2002:a62:ce8c:: with SMTP id y134mr13029270pfg.125.1599577869118; Tue, 08 Sep 2020 08:11:09 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id k5sm29436469pjl.3.2020.09.08.08.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 08:11:08 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH v4 0/2] rcu: fixes rcu and test-logging.c Date: Tue, 8 Sep 2020 23:10:50 +0800 Message-Id: <20200908151052.713-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::442; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x442.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+incoming=patchwork.ozlabs.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 failures 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 | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 2 deletions(-)