Received: by 10.223.164.202 with SMTP id h10csp656044wrb; Wed, 22 Nov 2017 13:09:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMYWVPBXlnIN+WvNNJkAuJgFlaaIHtCwbjjzZcqqI30KXG5eGPSYEa1hVK/GDpuEK+4Tw1pj X-Received: by 10.98.236.137 with SMTP id e9mr20789999pfm.123.1511384950854; Wed, 22 Nov 2017 13:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511384950; cv=none; d=google.com; s=arc-20160816; b=fj6ZCeR4MjOdVAc0B4SiOvZ3NedXpj1UZKOuLCo1RP83h/uaj4KzPtZsRAQiZsKmF/ WNdX7Bgf29SEvso88ql5NxaTsrC/uu0zfPO6DnufqhyBH9kORK5UmvPMQS4155c+P/Dq sBi2KEYUfqvZiUmFvzPGGkZdoU5reKbPiX0LE2LG0WtVOQ1Z6R1amgomWE3uNJQ8dfhK j98WnzdKyEqZEWZJQhFDLORM3Yk5hhgV5t9PX0a1IMXtMmRACObEpZMGCVakI0B9EbRp Vbv3c7yyQo5+iBeGtZa4VrVNgem9s94bAbJTfS/aVY9y2C5lpUN2cJ3AeGVfF5Ftocad LLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=5nV2U2BAMRLtlis2JXAwmUYdacm2HNUBUpzdEHSIHX8=; b=sonAvdUu9WhrD8oZCCObQeM7agKzyWLT1N/vLasmVun8k5gwDBGf5ZZefmXfKqmRUM y7MYlmyGh5hIroL/kTXqUQUYhT6cnWN8bAIVUmO50NIJUfTN7uvBsZiMMfmlu8w3RRIJ kq9rMTn5eHvcSJ6fD0CqCAvvreA59zhdEYFWIeblz0ID2Uh/SFyVfR0O1iPu2zr3ljla 2ysqKsddQX7lWhXdFdVkGqMXR0HxqQUfy2hYC3WTZTRPu0NLcso0Rc1PeYJuBqWcHZEc EdPvvknut9osTsSQ41+QqGyH1+YZZHBGtjg2zx5+opkp0bJLgAx2Unej93YQ3UDeRxzr GofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E7WUAck1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si15911991pfd.201.2017.11.22.13.08.55; Wed, 22 Nov 2017 13:09:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E7WUAck1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751621AbdKVVHx (ORCPT + 77 others); Wed, 22 Nov 2017 16:07:53 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:48711 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbdKVVHr (ORCPT ); Wed, 22 Nov 2017 16:07:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5nV2U2BAMRLtlis2JXAwmUYdacm2HNUBUpzdEHSIHX8=; b=E7WUAck163uAqks9HOBrU3FeI DAVpWJXJXrHgcQxWix7y3pouPnKZIPtS1MC0IHsEk6WHBOpoVQoXUyDOup596IsjAoSlWLOJ65v5k n4DqEd5n/VuLoS7wMOpW/EJbmKaQIOXTjBMsz34wt8ZRKKbSEPoT3MDsVHnxfJ8iYMrqsTzOt31C+ f5I1T11UJ+8pz9eApqijdqK6m20ykKRONgBrl5qNn0KhPF+zCpjrr3dUD2i8yzuJoWmwFO9c9Cyur 7ZMZom5Op4m1GGkeg/xbWMcNMvtO8xAp69hvApdC7vfed+I3rTXwERFe3MP0QlqcxWS++D2vVRPfp W5WhdE7bA==; Received: from willy by bombadil.infradead.org with local (Exim 4.87 #1 (Red Hat Linux)) id 1eHcFG-0007ou-87; Wed, 22 Nov 2017 21:07:46 +0000 From: Matthew Wilcox To: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox Subject: [PATCH 04/62] idr test suite: Fix ida_test_random() Date: Wed, 22 Nov 2017 13:06:41 -0800 Message-Id: <20171122210739.29916-5-willy@infradead.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171122210739.29916-1-willy@infradead.org> References: <20171122210739.29916-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox The test was checking the wrong errno; ida_get_new_above() returns EAGAIN, not ENOMEM on memory allocation failure. Double the number of threads to increase the chance that we actually exercise this path during the test suite (it was a bit sporadic before). Signed-off-by: Matthew Wilcox --- tools/testing/radix-tree/idr-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/radix-tree/idr-test.c b/tools/testing/radix-tree/idr-test.c index 30cd0b296f1a..193450b29bf0 100644 --- a/tools/testing/radix-tree/idr-test.c +++ b/tools/testing/radix-tree/idr-test.c @@ -380,7 +380,7 @@ void ida_check_random(void) do { ida_pre_get(&ida, GFP_KERNEL); err = ida_get_new_above(&ida, bit, &id); - } while (err == -ENOMEM); + } while (err == -EAGAIN); assert(!err); assert(id == bit); } @@ -489,7 +489,7 @@ static void *ida_random_fn(void *arg) void ida_thread_tests(void) { - pthread_t threads[10]; + pthread_t threads[20]; int i; for (i = 0; i < ARRAY_SIZE(threads); i++) -- 2.15.0 From 1584098809683198159@xxx Wed Nov 15 02:52:29 +0000 2017 X-GM-THRID: 1584098809683198159 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread