From patchwork Wed Oct 31 17:59:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10663121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 64D5C1751 for ; Wed, 31 Oct 2018 18:00:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55F822B4F2 for ; Wed, 31 Oct 2018 18:00:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A1722B515; Wed, 31 Oct 2018 18:00:21 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 EC4542B517 for ; Wed, 31 Oct 2018 18:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbeKAC7Y (ORCPT ); Wed, 31 Oct 2018 22:59:24 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:35250 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730208AbeKAC7X (ORCPT ); Wed, 31 Oct 2018 22:59:23 -0400 Received: by mail-it1-f194.google.com with SMTP id p64-v6so19550821itp.0 for ; Wed, 31 Oct 2018 11:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yj29T5cmfmPUPYwT/YaoQTh1MW42fjCKiD29ghVFQyc=; b=Ovq/tyvpEUXdoBtp5kTLiw0Agez2wgrQqxzSPoAjmx4ebbM/EH0ZMRdc6zOqKSCme7 ooXC2ZodirYjMG1E7ZFYqdfQgsUEutAkcfi5XipfU6jgnZimS01jzJPYQICpah/ZA7CZ JQa/VsJ3aKmCGd0JGJdeGQaJIwWfVdNVPD1YfG/2gzYcfLXGwHyOEcZzVrO232XuE8LF 4Kifx+hc1KfeZKKpbqmpacAC9oawwpDEr1ce692QMmTMeOwC3QOM7s+8iYURQhB1IIdl iWPq630yhPznJUVcQQAVpSPLFKe7iUg2cayhRQySrmkxbNvLU2J0soYAKU7pJiTPV5Bp Q4ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Yj29T5cmfmPUPYwT/YaoQTh1MW42fjCKiD29ghVFQyc=; b=OsWfaJuZoP96YdrPBwlYDh7jHoRtkWphi1o6UssM7T27Nbdzjn1O2V5Na2Dknmy/Mx eMDBys/No2CNVPsfDagIZ5kdvz6q3GF8xag3sheiihFjZ9OIvjzK8dvBT9MebNL8P7Ob PP3l2PxzghYqBYrZ/M5x5ZLSUuHQIyX7QIeA7UyVoozkj2A7PXENQFsMmtxhAT7Y0K+q UUi3odj94/9DDFoebkX1qaoYSsboGbjaPTUBJ/92qSjxMiH1qmlPBbSplp9dOpxGEJhQ l6XUf2e/7JFqrUXsMip0YpEYOGZMh3WxQmQVWPOTfgQzuf5yiGJ5qSJ5xS8gjKgJFcaS rYvQ== X-Gm-Message-State: AGRZ1gJu6O6NIOJ4XJX3zRFJ8iq2r/jef/jH3+Ayn5E6y/Ub7GYTXmKw tT9Q4FJZu+HWK/NusDujPyeTdA== X-Google-Smtp-Source: AJdET5ey2zyWua6wpFE7aK+towzDBC8yhq7DPfIvKUeWEURMKHEQEMTb5chjrUPnHMGTvEw0p0lDeQ== X-Received: by 2002:a24:f346:: with SMTP id t6-v6mr2849681iti.27.1541008818744; Wed, 31 Oct 2018 11:00:18 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id 197-v6sm10982947iou.87.2018.10.31.11.00.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:00:17 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 26/30] block: kill request slab cache Date: Wed, 31 Oct 2018 11:59:18 -0600 Message-Id: <20181031175922.8849-27-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031175922.8849-1-axboe@kernel.dk> References: <20181031175922.8849-1-axboe@kernel.dk> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- block/blk-core.c | 8 -------- block/blk.h | 1 - 2 files changed, 9 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 0678ec4b1169..951e8cf082e1 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -57,11 +57,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(block_unplug); DEFINE_IDA(blk_queue_ida); -/* - * For the allocated request tables - */ -struct kmem_cache *request_cachep; - /* * For queue allocation */ @@ -1969,9 +1964,6 @@ int __init blk_dev_init(void) if (!kblockd_workqueue) panic("Failed to create kblockd\n"); - request_cachep = kmem_cache_create("blkdev_requests", - sizeof(struct request), 0, SLAB_PANIC, NULL); - blk_requestq_cachep = kmem_cache_create("request_queue", sizeof(struct request_queue), 0, SLAB_PANIC, NULL); diff --git a/block/blk.h b/block/blk.h index e925cf4fe4de..2bf1cfeeb9c0 100644 --- a/block/blk.h +++ b/block/blk.h @@ -32,7 +32,6 @@ struct blk_flush_queue { }; extern struct kmem_cache *blk_requestq_cachep; -extern struct kmem_cache *request_cachep; extern struct kobj_type blk_queue_ktype; extern struct ida blk_queue_ida;