From patchwork Thu Jul 16 14:19:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51181 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 495C622A8A for ; Thu, 16 Jul 2015 14:19:21 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf18683725lbv.3 for ; Thu, 16 Jul 2015 07:19:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=FjXyNDgCzbnjcb08idA0E+xEzH9h2nNtL2YIywWYNYY=; b=YyM23IEM9CF4ESBqQJbC7fi+1ibirnP0LmHgh3CgXIqyV+l+QGbbyWQQLRt1QAanWX glxw7FdyxLpRXsYe3vZJ+T37IVdfdgFJLOiwxGxrbkyfbdmDTnVorFwOzB/RkpTXoPev eZJG0w3ftwcd6ed3CiVzOiPoJpc6rYGM+OZFLAily1YQ13OBXAlztMMQgy4VdURrIWqZ IxqVrx/i7MQz/7VPS5PIaYxB7LwblmDMrZysEyNpv8IQb3CFNyPhDwkl+8ujKaAcj09S DRpUOvnHtSgjw/KHY4sQkh3d39BihY7TnMfI/GIjds7wodxwNJSZRylPN0bYrA1xPa9r E89w== X-Gm-Message-State: ALoCoQnys29O/QjzEC34PtjqqvB/hbTIyyxb0Mj/a/tW7W5dk4XvYUoesAAsJDVuM0fIAa5CwIZu X-Received: by 10.152.27.130 with SMTP id t2mr4993023lag.2.1437056360241; Thu, 16 Jul 2015 07:19:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.195 with SMTP id ao3ls47272lac.53.gmail; Thu, 16 Jul 2015 07:19:20 -0700 (PDT) X-Received: by 10.112.43.36 with SMTP id t4mr9726500lbl.100.1437056360089; Thu, 16 Jul 2015 07:19:20 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id ej7si7045228lad.149.2015.07.16.07.19.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 07:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagx9 with SMTP id x9so44368298lag.1 for ; Thu, 16 Jul 2015 07:19:20 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr9563442laj.88.1437056359988; Thu, 16 Jul 2015 07:19:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp288101lbb; Thu, 16 Jul 2015 07:19:18 -0700 (PDT) X-Received: by 10.107.169.138 with SMTP id f10mr1930974ioj.75.1437056357901; Thu, 16 Jul 2015 07:19:17 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h11si7134707icm.59.2015.07.16.07.19.16; Thu, 16 Jul 2015 07:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 6E31462062; Thu, 16 Jul 2015 14:19:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A20BA61D3E; Thu, 16 Jul 2015 14:19:11 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0C8146204B; Thu, 16 Jul 2015 14:19:09 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by lists.linaro.org (Postfix) with ESMTPS id 356C361B80 for ; Thu, 16 Jul 2015 14:19:08 +0000 (UTC) Received: by obnw1 with SMTP id w1so47634837obn.3 for ; Thu, 16 Jul 2015 07:19:07 -0700 (PDT) X-Received: by 10.182.55.74 with SMTP id q10mr9302073obp.78.1437056347676; Thu, 16 Jul 2015 07:19:07 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id fw2sm4381062obb.24.2015.07.16.07.19.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Jul 2015 07:19:07 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 16 Jul 2015 09:19:03 -0500 Message-Id: <1437056343-26865-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] validation: scheduler: fix race condition in pause test X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Fix race condition reported by Bug https://bugs.linaro.org/show_bug.cgi?id=1234 Signed-off-by: Bill Fischofer --- test/validation/scheduler/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index d5412a8..37ff0fa 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -586,7 +586,7 @@ static void scheduler_test_pause_resume(void) for (i = 0; i < NUM_BUFS_BEFORE_PAUSE; i++) { from = ODP_QUEUE_INVALID; - ev = odp_schedule(&from, ODP_SCHED_NO_WAIT); + ev = odp_schedule(&from, ODP_SCHED_WAIT); CU_ASSERT(from == queue); buf = odp_buffer_from_event(ev); odp_buffer_free(buf);