From patchwork Mon Oct 29 16:34:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10659673 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 0ABEE1751 for ; Mon, 29 Oct 2018 16:35:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1E6C29C43 for ; Mon, 29 Oct 2018 16:35:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D659A29C46; Mon, 29 Oct 2018 16:35:48 +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 841F529C4A for ; Mon, 29 Oct 2018 16:35:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728106AbeJ3BZI (ORCPT ); Mon, 29 Oct 2018 21:25:08 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:54484 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728096AbeJ3BZC (ORCPT ); Mon, 29 Oct 2018 21:25:02 -0400 Received: by mail-it1-f194.google.com with SMTP id d6so4708084itl.4 for ; Mon, 29 Oct 2018 09:35:42 -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=GlWW7mZ3bag2vWWL55q+KoV2uMlzKVUSMjsgOrFsak9ne3WkQ/C5bEPrQ9S+CtEeaB tL0akurXnCb2DLioPjRgxvQhQ0Fc9zU064pi98vm+oDAGwO/ld/VdkrT5ax8HbWzHIZz W6VPRhYVvmXinfgWxHnVR+yedVDOuzHa3KMqvZWxLO0/OTaCGhlEHI0+J1avULVwPLXa 2PvxJiUIxFc9MokzI7zZ4I+NgPB7qlvp0QQ8MjvTqIefrGytMjqTc5GLtWkFW2hCLQv4 HH3YzZe1SwUU84ofVLTmJN0HPcdwP9j+XwMU5Dq+iGGijGLzGA/FC2LMBGfI7GfEDZmm bypg== 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=rxdWjE0eCLzh5yvf5IQR3jDO1fXgtWrzZ9y0wyFlLOZJSLHBao9X/vSRqzOKfJkjec 8Xv/9H+fCgHMa90kTS3EogX+HfQdiHiR0HBAglRWSb77poHpbtSNAo7pnS+NJF+4E8es tE99gNY2fv6C3tsK4+/6AX5M9ULRWJir9qcRlyiG8FDUjfz4xLoC8wHqbzMH8tvY+nBI xnCs9cxNB8wfFwNp7pVcoPYTtRIltSwYsSfP7gR9NJbuIGI/mpcw9fVwNVg3gIYEzrHg vS25yCXGWHcyKcNlnBoN6OHCCTO4kdxWS3fFDdAZweyk4p1zdyELKspIUqX0iZ+vcJZk sM+A== X-Gm-Message-State: AGRZ1gIOGfr8ffFlK5UdO+QbFF+5m1/BB/dJCH14bVYnPqi6vmb6OK5G NFeDb6muhFnVh3WjuTx7CW0kcw== X-Google-Smtp-Source: AJdET5dfe4evPSroryCPXDprj537Z6q+oj5U3L5NhardSeH4Fr2js04nXTpgyCgfUAJh83lV8XOw/Q== X-Received: by 2002:a24:7c81:: with SMTP id a123-v6mr8273918itd.29.1540830941464; Mon, 29 Oct 2018 09:35:41 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id n7-v6sm6464500itb.22.2018.10.29.09.35.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 09:35:39 -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 26/29] block: kill request slab cache Date: Mon, 29 Oct 2018 10:34:41 -0600 Message-Id: <20181029163444.9940-27-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029163444.9940-1-axboe@kernel.dk> References: <20181029163444.9940-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;