From patchwork Thu Oct 25 21:10:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 989357 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="z93nXnT2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42h0D21GSVz9sBq for ; Fri, 26 Oct 2018 08:11:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726149AbeJZFpb (ORCPT ); Fri, 26 Oct 2018 01:45:31 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:42865 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbeJZFpa (ORCPT ); Fri, 26 Oct 2018 01:45:30 -0400 Received: by mail-io1-f67.google.com with SMTP id n18-v6so6402188ioa.9 for ; Thu, 25 Oct 2018 14:11:12 -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=lFi3ytuVwN23tjINSpp8EPlFQdzwD3G97ZaSk+3bfAk=; b=z93nXnT2FCA3o4tiaSYfayrYH1DieVmuBlLSpNpPIDbSIffHq4novG5jXB9UnbUBa2 QDq3nk96T9h0GLihXCHqU8d3fWQEnwKIz5voYY5dehCGyeU6bpOrB2kEUqBR4HmXJ60C 5tD4xF6lRwVitl+FBAV2RsOZ/EqsSyhtG0VNfRUe2yD7OSCr63rR//VuOJDjck6lpeIu ZMwKkjVJJzoqhYFVNTvfSBxNLrFSgeCuScqlnGvgG1X+6VqWwizT56Xxik1zUMD0nWUm NPmw1+HQOi7A/dB+N3SdW8M51toD3EQ1SILQMYP7gUCHNV2IYJkadajX6140D4Fd8JwK K/hQ== 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=lFi3ytuVwN23tjINSpp8EPlFQdzwD3G97ZaSk+3bfAk=; b=g9n6sJuX/iphPwk1i/MM6G7jxsaEVzbox9kP/Xk+UxGmdi7LbYI0yZKJ5I7dQqrZYu C0uGazqlaPpBb3Un5l2eSsXymzbv4CEqkI3eyVGvxaKYKwPrhohxvhRbljNgWXu1gGEM 78/yxbIQ758Mm/vmIh8y7xJrh953mK6n3ZMkTAhp1gVsKQrxDXyeXRjmFqHzDM0h3eJV pSkMdRQT4EAm2D23Rh6so7aauYZgrgFVxTakb6Hu2EIknFOYuh07vOcfqT3O3qU+eDsL oXvqA+s2v8jwKo7qc5HqTqlFtdZZjYW4y8z9oUk1W6nKz5OHYMbvHj4fVYHUL5mOcueZ ZDdQ== X-Gm-Message-State: AGRZ1gKImPAIJmFvFmffIqJzTYHWm1d8Dd4u2E2ULBXuZxWYNQcV3dZo Q519pyIKaPbQAVxOz7Kq5sSyZQ== X-Google-Smtp-Source: AJdET5cwjyApAV7wfedhBGXMkZYmK980z4UGO7C5tD+YjCEU7fQq8YptflfrSrD4i2sgdpKHmVkiyg== X-Received: by 2002:a5e:c114:: with SMTP id v20-v6mr594824iol.155.1540501871842; Thu, 25 Oct 2018 14:11:11 -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.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 14:11:10 -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 14/28] block: remove blk_complete_request() Date: Thu, 25 Oct 2018 15:10:25 -0600 Message-Id: <20181025211039.11559-15-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 It's now unused. Signed-off-by: Jens Axboe Reviewed-by: Hannes Reinecke --- 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 4293dc1cd160..9ff9ab6fc1fe 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1205,7 +1205,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 *);