From patchwork Thu Oct 25 21:10:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10656575 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 CA6821751 for ; Thu, 25 Oct 2018 21:11:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEED32C648 for ; Thu, 25 Oct 2018 21:11:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B36AB2C654; Thu, 25 Oct 2018 21:11:38 +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 6651F2C648 for ; Thu, 25 Oct 2018 21:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727589AbeJZFpz (ORCPT ); Fri, 26 Oct 2018 01:45:55 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37096 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbeJZFpz (ORCPT ); Fri, 26 Oct 2018 01:45:55 -0400 Received: by mail-io1-f67.google.com with SMTP id k17-v6so6410736ioc.4 for ; Thu, 25 Oct 2018 14:11:37 -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=2wqSYuvF6MKyiePXCdn/sLKe36Nlhr7PqdiR7QfEihQ=; b=x9AqGviOT0YHkQiajE2T680d5Wu5xxKgKGXPp7kwn+DqsfTXnSUJjbqPt6RqBbqL3k 47p6MSbquN1oxdZOsJhgM9iRtdF2IUyuNyMtJ/0ZkC/gYKVnDW14lw6zAvYzbisOty+0 3BxQi+pQYmV64eVa5D/pnyxkb7hI22SaBgvZZtTual7pZGOlKll1+1FXWsob8GZUvRtr 3KPWTnnqz1p0QnFECVfIhrzqtGtnx5FYgOXtBGDQ2kqBoa3ifxVHL5//yU71Ykkxapzw GXX6oRjly2hrDm5/gFChx0waEzRDU6bBS1G4G8bdS3Q/3kgD1dBG0g81VJKFUGUAPuMp RgvQ== 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=2wqSYuvF6MKyiePXCdn/sLKe36Nlhr7PqdiR7QfEihQ=; b=Zxfts2xclwwIGYvazDwG6v/+4IfCWUPdkczaJZlJ7+O3hLkyelFCm52HdBrNNK79q8 Hf5PkTumbJlELAmzuWNrabjW6QB1QpLDI/n3IV0QDfScbKuppR63kr2C51+0/2OzMaus BUt6Wfrx0s/H6sNMTLluhCsX2RQZUKfgILm/EpiGPL7psg0rdLOX/5ECicAsIOlrI6d9 vdXbvWw0SsnPSHIiq9OJFA8j4AbXqYg+WZZuBZ/khcMRbWMBBMqLk7mHc/5I3Z4T8WCj 59BkOEWZowyrxX0hHxvD4aKPBBRNYrNzJmYmi47sskMDK5LH2jGs3ktO1J1900Xt5QmW JDyw== X-Gm-Message-State: AGRZ1gIlttay5Ix17AjgPfmun/9bxBzMuecINWCKdkd5mrPtBQlcMWe/ it8u+qLTAHcosyhwwDPmi8W6rA== X-Google-Smtp-Source: AJdET5duGy8NmautnT8nmFvqogsmZMSuwPsIgEC8CFBYQVCIKYp1fs3eMNXk7Ba67avLKUyG3UMpSg== X-Received: by 2002:a5e:8a02:: with SMTP id d2-v6mr598392iok.110.1540501896960; Thu, 25 Oct 2018 14:11:36 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e65-v6sm3446375ioa.76.2018.10.25.14.11.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 14:11:35 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 25/28] block: kill request slab cache Date: Thu, 25 Oct 2018 15:10:36 -0600 Message-Id: <20181025211039.11559-26-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025211039.11559-1-axboe@kernel.dk> References: <20181025211039.11559-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 Signed-off-by: Jens Axboe Reviewed-by: Hannes Reinecke --- 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 e8f60ed456a2..6074bf2ee2e7 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 */ @@ -1941,9 +1936,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;