From patchwork Fri Apr 10 12:32:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 47032 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2EC9D21416 for ; Fri, 10 Apr 2015 12:34:59 +0000 (UTC) Received: by obbeb7 with SMTP id eb7sf26178533obb.0 for ; Fri, 10 Apr 2015 05:34:58 -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=ITXS8FIxcmTCqFw5+/BqGHXPhRyzqm00fNFJBOJftHE=; b=j7/XABXxMzAPWc64dggfmN3aJCwoTDA/boVzpv6UOY/wp+AyakFtwkFV96TZ3cW6Jf 7kTrE+g+Fiw/YLUi9ZbaOEhm5rTGhmX5wHO7CeP5nmBcKW1jgVCNS6GPrpf67RraSqDO kh3QY1u0DwwAsxbZtsxXryurdE5Z8NmdBJB3tcnhjp4ywnpNx1vDX3fIA9iIDFLceqe+ 5hCQ+kVjNHC523eZ/kACq46DstlsDxSSxo5r3qhSUWGSnHjdAng/NSnjF+Eu9bnb7Lp7 V9mTy4BGEqlA9Qpi/5aJIbgcDmJOg3+cCrbUecM8NsITi6KaW/VezRcgMAFckkqXvRFf bjYw== X-Gm-Message-State: ALoCoQlKj0T4WZ3o7KOrU4ij3jbW6owobmhJb7qckHfXD1KgnTU4KvMIj1Ulc0iPIkc/63ZjPZXY X-Received: by 10.50.254.65 with SMTP id ag1mr22254843igd.7.1428669298791; Fri, 10 Apr 2015 05:34:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.81 with SMTP id s75ls1810854qgs.29.gmail; Fri, 10 Apr 2015 05:34:58 -0700 (PDT) X-Received: by 10.140.48.129 with SMTP id o1mr1335442qga.21.1428669298320; Fri, 10 Apr 2015 05:34:58 -0700 (PDT) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com. [209.85.220.177]) by mx.google.com with ESMTPS id g9si1649561qgd.25.2015.04.10.05.34.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 05:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by qkgx75 with SMTP id x75so28259732qkg.1 for ; Fri, 10 Apr 2015 05:34:58 -0700 (PDT) X-Received: by 10.140.131.79 with SMTP id 76mr1426030qhd.57.1428669298215; Fri, 10 Apr 2015 05:34:58 -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.96.155.231 with SMTP id vz7csp984424qdb; Fri, 10 Apr 2015 05:34:57 -0700 (PDT) X-Received: by 10.55.56.8 with SMTP id f8mr2185320qka.97.1428669186237; Fri, 10 Apr 2015 05:33:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f11si1605080qka.118.2015.04.10.05.33.05; Fri, 10 Apr 2015 05:33:06 -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 84C7A650DD; Fri, 10 Apr 2015 12:33:05 +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=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=unavailable autolearn_force=no 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 3D5E8650A5; Fri, 10 Apr 2015 12:33:02 +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 30C09650D6; Fri, 10 Apr 2015 12:33:00 +0000 (UTC) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by lists.linaro.org (Postfix) with ESMTPS id 15C04650A5 for ; Fri, 10 Apr 2015 12:32:59 +0000 (UTC) Received: by obbeb7 with SMTP id eb7so11768356obb.3 for ; Fri, 10 Apr 2015 05:32:58 -0700 (PDT) X-Received: by 10.182.165.69 with SMTP id yw5mr1534202obb.5.1428669176073; Fri, 10 Apr 2015 05:32:56 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id z5sm1484132obx.14.2015.04.10.05.32.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 05:32:55 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 10 Apr 2015 07:32:50 -0500 Message-Id: <1428669170-7854-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: pool: fix missing increment of blkallocs stat 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.220.177 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 Fixes Bug https://bugs.linaro.org/show_bug.cgi?id=1455 Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp_pool_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/include/odp_pool_internal.h b/platform/linux-generic/include/odp_pool_internal.h index feeb284..b6b108f 100644 --- a/platform/linux-generic/include/odp_pool_internal.h +++ b/platform/linux-generic/include/odp_pool_internal.h @@ -158,6 +158,7 @@ static inline void *get_blk(struct pool_entry_s *pool) pool->blk_freelist = ((odp_buf_blk_t *)myhead)->next; POOL_UNLOCK(&pool->blk_lock); odp_atomic_dec_u32(&pool->blkcount); + odp_atomic_inc_u64(&pool->blkallocs); } return myhead;