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: 10656579 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 D2A891751 for ; Thu, 25 Oct 2018 21:11:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8A9C2C648 for ; Thu, 25 Oct 2018 21:11:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD86E2C652; Thu, 25 Oct 2018 21:11:39 +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=unavailable 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 7A22F2C648 for ; Thu, 25 Oct 2018 21:11:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727574AbeJZFp4 (ORCPT ); Fri, 26 Oct 2018 01:45:56 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:38891 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbeJZFpz (ORCPT ); Fri, 26 Oct 2018 01:45:55 -0400 Received: by mail-io1-f66.google.com with SMTP id q18-v6so6409632iod.5 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=GX/OOLUsDnVEE5OpuvAsCQW2WOaTpnaESSl/Cn9mAVMyw/HmV3jy2sPR9XyCVp9NxR 9iYkt+5vev4XVVc0d/mMFIE5Y2kH3C47/Vb31l8qDdP0vnGUxcDdsMLya63iJ9F5bzJM tdv8O3OlF54OPhpYaM25WDza0UUZtfnvZgxJyDlzUfZJHVnTuNQihL03GXB+XPRwzXUg Bd7EjoWVKFh6Dt/LeA8fWSryAPRNo3uLWmu9IYrf7E+XO4DNe02q3kNZ1O1YbHTPCbu5 lcR6zJ2DSURgkGidH0Ob2KtTxDBNFZ3zeOBp2OKvHf2jEtpGZGis7iW8jgUNPnbXklby 6vDQ== X-Gm-Message-State: AGRZ1gLkzcDNQJhF/LJPAeG0Cuo92zk2vUqvM3IlEKzY95e7UlLIhMut KjOBjTbtQRaIrszvsf2CgoOiuN4gm9wGqg== 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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;