From patchwork Fri Sep 9 18:42:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 9324115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35908607D3 for ; Fri, 9 Sep 2016 18:42:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F54D29640 for ; Fri, 9 Sep 2016 18:42:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 137A82978A; Fri, 9 Sep 2016 18:42:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EFEB29841 for ; Fri, 9 Sep 2016 18:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752015AbcIISmh (ORCPT ); Fri, 9 Sep 2016 14:42:37 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34020 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754260AbcIISma (ORCPT ); Fri, 9 Sep 2016 14:42:30 -0400 Received: by mail-pf0-f174.google.com with SMTP id p64so32004207pfb.1 for ; Fri, 09 Sep 2016 11:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=6S/VHWfj4YAR2ReGzlcX8UJez+ycQgXqkHy9mX0ADnM=; b=epSxQAfbbxt1F72jvp3Jkeaji2xjwAU1irQVTZ+bvwGTAeyaef2styZ2BlMvggNl7b rz5XEGGXxDIYtTu5m/PLUf3edM72YpnEzGbJU3vZocaM5oopIuQJeWS2NhctLnBhWGas DR64ibX0/mnnZhEmm4imVM2t2atAeZDAvbwXKfKo9DnnHcdmhTXANvf4ntsG4SoSgWz+ BkerZfCsFAbbEx3e5Wtq0J0BmM1N7G90mOIU0eoAOI4LSoPriIwCRK+YteJgdZSPUCrd 1O+YxWD4KppxHkIfVHuWSOdJvB6gZousf7D5Qvzc92NwXgY5oBOkQ8sGEcGMqru6dtwG ZZ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=6S/VHWfj4YAR2ReGzlcX8UJez+ycQgXqkHy9mX0ADnM=; b=Xfz/BtPViqlpdPNQGBCMZKXYbctnujt/RtTsu38f5EJ8h8wszmRVBlpJ+M6znryjqg DSIOVm24uvc6jaxFEDPQQNH1Pq9GlidmBIMrtnm6OmTb/5J33REASLyaxQI0Xf5lRFT7 OhEzxwCaDEM1juhLRxHHrWgUscut7TCGg/rq6Y/iv2dtQx6aGKDNDKBnQS4M0F2uJmwP ghvpAjOXsr6IDPTw17/bOQBjhLnYsiTC2w9gmmQmwcOSLlCuAoZSyjkYowwMBNs/TepB 4iz+OAI8eTpc7Ti7aZSF6PNZ3quUmzeVBZE01pbUujwjsTgTzADvN1rfO44gV8t+KrQU R8rQ== X-Gm-Message-State: AE9vXwNXcLujUBz2TcwDpY3NxF4Mnxz6pqrV9NkxdmeQFmk2Xo74cKvQTYK7NCFmL+XQwyqx X-Received: by 10.98.9.150 with SMTP id 22mr9204479pfj.56.1473446549454; Fri, 09 Sep 2016 11:42:29 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:200::a:be18]) by smtp.gmail.com with ESMTPSA id s1sm6940075paz.47.2016.09.09.11.42.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2016 11:42:28 -0700 (PDT) From: Omar Sandoval To: Jens Axboe , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, Alexei Starovoitov Subject: [PATCH v3 2/5] sbitmap: allocate wait queues on a specific node Date: Fri, 9 Sep 2016 11:42:08 -0700 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval The original bt_alloc() we converted from was using kzalloc(), not kzalloc_node(), to allocate the wait queues. This was probably an oversight, so fix it for sbitmap_queue_init_node(). Signed-off-by: Omar Sandoval --- lib/sbitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbitmap.c b/lib/sbitmap.c index 303d83e..213d831 100644 --- a/lib/sbitmap.c +++ b/lib/sbitmap.c @@ -208,7 +208,7 @@ int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth, atomic_set(&sbq->wake_index, 0); - sbq->ws = kzalloc(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags); + sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); if (!sbq->ws) { sbitmap_free(&sbq->sb); return -ENOMEM;