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: 990401 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ide-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="GlWW7mZ3"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42kKwH6BZdz9s7h for ; Tue, 30 Oct 2018 03:35:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbeJ3BZD (ORCPT ); Mon, 29 Oct 2018 21:25:03 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:39916 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728094AbeJ3BZC (ORCPT ); Mon, 29 Oct 2018 21:25:02 -0400 Received: by mail-it1-f194.google.com with SMTP id m15so10161558itl.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=QdJVlroXk7EE/W1qGmTuBD1gH9qQFi0hZOu45FoMuux1V+Z0tGxSVLUEUkegTxPrTz hTGZFqHBpd8/MkmDCkZAYH2urMk4/WycXRRKZYSlgddMz4Gyctjx2cAxUAdVvcbY/Xpz IJVeZrWcDuvIynw40o/6vcfIhMab+97E+tWwviIH2wucYSkuMvD7N/ypfQn30uRlRqUJ Lgdf/hhlwLZubZyJyedENgJPr3uidBudentpC4Z/TNHgIWsjo1KGwAYe/+duhUCgTGG3 lF71jDk0Sbmz0tD2ga5A2Z6JvWCltlXVZOsjeHpuMqRldv26vKrEmvWoqo87IRdJdKvs xRYg== X-Gm-Message-State: AGRZ1gKPQPo8oL4FU069CNDCDjU2/vyb9XJRb4CkpSbzaxEZRMXQ54dI eSIuQy9z9956LIlUn1CQjQmj5KO+raw= 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-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org 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;