From patchwork Mon Oct 29 16:34:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 990392 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="xnw8cP0O"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42kKvr5jbZz9s7h for ; Tue, 30 Oct 2018 03:35:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728005AbeJ3BYk (ORCPT ); Mon, 29 Oct 2018 21:24:40 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:36774 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728003AbeJ3BYk (ORCPT ); Mon, 29 Oct 2018 21:24:40 -0400 Received: by mail-it1-f195.google.com with SMTP id t4-v6so1844850itf.1 for ; Mon, 29 Oct 2018 09:35: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=nGFUKkJorzZ2OccxLOjg4Eyx9GGMXKzcV2g7CTUjhGs=; b=xnw8cP0O1dRlxMdVNK9IGnFJqobSJqCE7cER3VDB3d3411hQW43C/V4h4Ef/3LvMrx rSLwUA8uxvZ8SutFn8hRSywytsQIXLa+5Iw4CfnzJE+VZOEYa9ZVojcKRW/p9nSc9iRU 6CFEH09uAd+OHXRrt0aFtWNuHn9qiO5Eyov3X0yzxsJNUJuI1iW8cSemd4cCqW7860dz sFupr0UcF4NzfFt1H/Hdml9Rlabb0EoM7k0TpfF90lMqAkpQ5/ZtQWaW6aE4M8Y3dQFm ZDU3FvDPdlc6FUB4PuFoFRv98gJP6HrTabrXBvM1SNnVgOdQt1+P5fynPSCSzreU7Zix Ottg== 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=nGFUKkJorzZ2OccxLOjg4Eyx9GGMXKzcV2g7CTUjhGs=; b=UmuMXVMivAgUpEHaE1MmgILoP0Ebl9LNXq9EhmkjMyvCgSPlmUqVhoeU+LpAq87y42 AD1qXBOSU8tayRwdcaY+pqpqa0lM9IAais0rZdnZzG81hWtITD7uYzCE7csDw82utwUD 72D/QoOX67h2wSsASHGVnio2qh+giRP8attqRf/OFUjEXeZLZk7NNxsm/X0WwIGkW1h2 UGhfdRxvayUjj/d2yUQX6NHiu+6si7yHP+bIpvT0aL/ubMaM4d6OtQAd9cI8xKt1r89T 80Qg7xx7n1LLnerf8tiZyyhy1xb1OKjTZh3kjlntH2VtNXz35Pw6BTmX/gWCTHOYh1Y4 skKw== X-Gm-Message-State: AGRZ1gJqTukYKLLdHF3QjyGvQ4U+6wB3qkR4K0jsAxx6wCKcx5u8cAS1 JzSXDe8LjAVjXs5bYnHPNmQ3LQ== X-Google-Smtp-Source: AJdET5c5kIzNoGWx5pqbVIv72pSuAG056zvsiAcH1Ooal17WgOayLYsBqDgR6FViYgDys+Hro4URkA== X-Received: by 2002:a24:25c1:: with SMTP id g184-v6mr10443601itg.120.1540830919055; Mon, 29 Oct 2018 09:35:19 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 09:35:17 -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 15/29] block: remove blk_complete_request() Date: Mon, 29 Oct 2018 10:34:30 -0600 Message-Id: <20181029163444.9940-16-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 It's now unused. Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- block/blk-softirq.c | 20 -------------------- include/linux/blkdev.h | 1 - 2 files changed, 21 deletions(-) diff --git a/block/blk-softirq.c b/block/blk-softirq.c index e47a2f751884..8ca0f6caf174 100644 --- a/block/blk-softirq.c +++ b/block/blk-softirq.c @@ -145,26 +145,6 @@ void __blk_complete_request(struct request *req) } EXPORT_SYMBOL(__blk_complete_request); -/** - * blk_complete_request - end I/O on a request - * @req: the request being processed - * - * Description: - * Ends all I/O on a request. It does not handle partial completions, - * unless the driver actually implements this in its completion callback - * through requeueing. The actual completion happens out-of-order, - * through a softirq handler. The user must have registered a completion - * callback through blk_queue_softirq_done(). - **/ -void blk_complete_request(struct request *req) -{ - if (unlikely(blk_should_fake_timeout(req->q))) - return; - if (!blk_mark_rq_complete(req)) - __blk_complete_request(req); -} -EXPORT_SYMBOL(blk_complete_request); - static __init int blk_softirq_init(void) { int i; diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e867733b761d..6baea6563364 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1203,7 +1203,6 @@ extern bool __blk_end_request(struct request *rq, blk_status_t error, extern void __blk_end_request_all(struct request *rq, blk_status_t error); extern bool __blk_end_request_cur(struct request *rq, blk_status_t error); -extern void blk_complete_request(struct request *); extern void __blk_complete_request(struct request *); extern void blk_abort_request(struct request *); extern void blk_unprep_request(struct request *);