Received: by 10.223.164.202 with SMTP id h10csp661428wrb; Wed, 22 Nov 2017 13:15:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMYvApQCngR0qWiRWgFZ5xlyaG2tfnx/pJprrx1p87C2IiM9X8iys+k+WtHmeYjgoqdtQEZM X-Received: by 10.84.192.37 with SMTP id b34mr9094105pld.157.1511385307301; Wed, 22 Nov 2017 13:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511385307; cv=none; d=google.com; s=arc-20160816; b=pL3h1L1gisvOxE1OX8zvD5jPUGMXHasMt85i+noWsCKa0/6zdRlXrmWSpfYJWTXDPK KtQi2+q15KnaRrKzhCZyjO6guE+VD7fVKu+iuARdBZUX4EhGvWEljiqd+sX8NY0mCKX5 +5ugUupLFgvZHplgfCmPJTztZWFWL342j2ax2lLT9m1gbYQKqQdtfiQXx6yHj2H9eu4n u9/T/q9Q6NnvVZewuIGZg+EF7/lcoSF0kWSxHgK0ABh2F4qUVhL4Ocp8ySLw7Pq4oewg dhmNNHYkOr3XBJtPUdu+p4ys9R7pndH6pGGeYIF70Y7woKbogimu9trRUbhefVYWxbYC 21sA== 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=NSKabbO1/6PNDnbQIO3IG8nz4oXGhv9UzDxpZEi+d1U=; b=O7gu0Tf0PH+chFEuFCZ32NZJYdQuorTgpzIvTvplyzJTyYs+QEJFBLmm4BcrrptbKC 3u0JfAzw6t10Aqo+Knj30XEvAlhgZuxxNJ4mWU9kwwNavaV8uDZzCfEEySfRXZxOerOM Tq7GcUYj6dQ+6jpHwpW5U3eoZM+lvcr91msAeLNBGy0JYu1S/bV3ErfPqWSUqhoO9ONk 1Ib2jRpS9p6b1TBWiewcfgLtRfafIjADa7XzpIJuT+NRtbSO3c1n20iNdhl/HYz9TtEC ynIdpDLo+89z+dyZpygepcUmK+GwE92A5pZREGNWQUcIDN/WFhhcBnwq9U8wI/sa+3uR 8sBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Bl2m5BX3; 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 3si14619501plm.768.2017.11.22.13.14.56; Wed, 22 Nov 2017 13:15:07 -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=Bl2m5BX3; 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 S1752065AbdKVVLg (ORCPT + 77 others); Wed, 22 Nov 2017 16:11:36 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:37394 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751874AbdKVVIU (ORCPT ); Wed, 22 Nov 2017 16:08:20 -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=NSKabbO1/6PNDnbQIO3IG8nz4oXGhv9UzDxpZEi+d1U=; b=Bl2m5BX3rVg23bInypbaWDS3s +StLOusNIKL80HbPUhtniyE6H0LSzxXAooz6f64UXFYgvBPk/+e+LUbhXTQ+M6Dk+Aikmj4yKZjqF pkKlIxP9ejfCulcSksbUCWxRX9ej2Z5C7fDAPLLOG7mGX8bkyL0/9U4qSYDaMry8lr3b+owoMMOWA vUFAmFJO4EJc0yI4soX3+zgBlIra4F2oh2wY28nvmxUR/hqrftzq+UN2nU4Mk0vn6zZy8XM4Iu2HN 8HlpBLC3Zkh8jatUWNQzLPFO2Ns0PFqwNcO6dvkMuyEBbhPVbqf8XYIR99ujTxhkIw20vAYpuUDhb U2nliBG0g==; Received: from willy by bombadil.infradead.org with local (Exim 4.87 #1 (Red Hat Linux)) id 1eHcFn-0007yD-VP; Wed, 22 Nov 2017 21:08:19 +0000 From: Matthew Wilcox To: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Matthew Wilcox Subject: [PATCH 53/62] irq: Remove call to idr_preload Date: Wed, 22 Nov 2017 13:07:30 -0800 Message-Id: <20171122210739.29916-54-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 Not entirely clear why the preload was there with no locking. Maybe at one time there was a lock, and the preload was never removed? Signed-off-by: Matthew Wilcox --- kernel/irq/timings.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/irq/timings.c b/kernel/irq/timings.c index e0923fa4927a..e9f16527656c 100644 --- a/kernel/irq/timings.c +++ b/kernel/irq/timings.c @@ -356,9 +356,7 @@ int irq_timings_alloc(int irq) if (!s) return -ENOMEM; - idr_preload(GFP_KERNEL); - id = idr_alloc(&irqt_stats, s, irq, irq + 1, GFP_NOWAIT); - idr_preload_end(); + id = idr_alloc(&irqt_stats, s, irq, irq + 1, GFP_KERNEL); if (id < 0) { free_percpu(s); -- 2.15.0 From 1584790348327371253@xxx Wed Nov 22 18:04:12 +0000 2017 X-GM-THRID: 1584790348327371253 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread