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: 991623 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="Ovq/tyvp"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42lbj14NVTz9s8F for ; Thu, 1 Nov 2018 05:00:21 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730210AbeKAC7X (ORCPT ); Wed, 31 Oct 2018 22:59:23 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:37502 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730075AbeKAC7X (ORCPT ); Wed, 31 Oct 2018 22:59:23 -0400 Received: by mail-it1-f194.google.com with SMTP id e74-v6so19549736ita.2 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=dIXbrE+6N10R3GG9Bi3kTCwGHnKlfoE75B+/A1hDGnk25lzl70KrfITMVk8dN+VI2S /vgdUQDuVCYIUW9qoOfruHSNznLSocWwBr2+Dc7Hhb8NhlCNTFER8KfvtXkjI5gFIigs NnrX4hsejHxn9Ri1r+VtyFVTXS/7WiQrjHHPcQcgkaJBqzrG8Swl0loyzgvsjJpzC63R fg78/9nen1iFV2AY1QG/cGE9wX0STS0ITUdhYFi5jvsCvfFaQcNpuYuFamaYeZC83eOs H2Zhxf3SxbzgLIke2xmp02tkg1WSDyvNiyPmL/8zk27uMCrhCMbsy+hb8btVtrb0i5z8 QgGA== X-Gm-Message-State: AGRZ1gK+syKPyTPzP53NMsSg76/DgpteT8PVlBzRBzGaLVHqiEHWbfho wNTz4zjuuNijxbWTTtsFTzYtYg== 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-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;