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: 989366 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="x9AqGviO"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42h0DV65n2z9sBq for ; Fri, 26 Oct 2018 08:11:38 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726217AbeJZFpz (ORCPT ); Fri, 26 Oct 2018 01:45:55 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:46714 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbeJZFpz (ORCPT ); Fri, 26 Oct 2018 01:45:55 -0400 Received: by mail-io1-f65.google.com with SMTP id y22-v6so6389724ioj.13 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=f9bcAmRCv805f95c66Y2DtuPrAlcBFQwrNjEJkRZtE/L9EqVk8WdRoIVBPU8fwmSK6 cjzNs0EEfOe4Lkx2vszaB2fN6mVP+R4QxbYkNmNSHZZzkhTXMtE1EzXAwdW+wd/N85rA voc7NPxmnzbFjZ9rzHKJ7UlR9Pj6nz656u0GmnLUOFkfESr+zZduknenb55F7GtOVJEW d10xNBWQgpun8kIGZle6zi0e6GXR3REtgo8LhSOSK2JpS8zcA11/vn9mRqX2/TKPIIga b44zCDCex4dreo7pFauFeN6GrEZaKotaqhtZmGMEsXj+p/CfIrD2oqdtwQQ6lXn+ZJoU Xazw== X-Gm-Message-State: AGRZ1gLxyJRvtCld7QrGylpSPr3yHg4EM0T8LmgZluWPviHdhoayCMex oGFT2G2lX7vbg8/OR7y5CNFwSw== 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-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org 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;