Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3274407ybl; Mon, 19 Aug 2019 15:38:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVL8V6s88aQ6gUfxxGLjZnCdlsgZd+hB/xzSO5aNDv/OhjTlYFgbaQ+KfGzolJQ91V8vS3 X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr23870860pjq.73.1566254331773; Mon, 19 Aug 2019 15:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566254331; cv=none; d=google.com; s=arc-20160816; b=JyAjWs9k+IIYs0B9GOXuXjsmU1AGt6JS6LPx0vlMkj0M1/x7Oz83roSnJFiHKcVQP3 DfIuxhN7YbJ9SNhDdEyH9P4CuzL0i9KtSQ7+oBrBHRlEI+k8FtoXKT2WlJarta7CIPno CWDJEg+0OqCZlAQEuLeI22fVbrboKQ7igzRLzAv86Dz0qu9fLWOEAV2xiwhIPo8XSzAG UDMcxdX8igMdilnf/T4AeWmTTOJwXD2qx/jxNdjSsBds5DDBgAZ5YMUL6Gqpwbud0Xq+ IfRAm9EI56HXI+qEcovDIVlcchZ6XZWm5YKxzMIDSGEhiBBFOhb8VSTz+mQmE11PBOTc M0zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=v/LwbD9loDDrhZ9x90qmsZdLimN0wXa2LzcUKgQfxQc=; b=cjRllVQDlahOgD/FF3cRM7y3WI1/b3h4N1LZQC0V7M7qxXZNwDlp/PE2vN3srcndb8 wqJ9peevt3XiOVcE/vMeI9j0ROlifli/f+xqFp4lvLqgvnbHo2bv1mMqYnoCWgvlDs2A Ks52tYPBoaAiVjsHadoHlrHIF8unrP/zC58EdHNkRAJ5yfICojQuyKHIm2CmmbLxCApH EoTbfahYzfMshBBquq9CswOpIMd+eGlhHT8obYkrej2Afan7+nlK6JgWpNrqyeMHZzsP cIONDyxHVLfRtIfcXwdB4tJP2tvZAvsLXLg0gxv08hV21x/JKOfZ+fpJcNtaTlXbx0lY z+KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EoDZczF5; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si8941838pgp.409.2019.08.19.15.38.37; Mon, 19 Aug 2019 15:38:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EoDZczF5; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbfHSWgl (ORCPT + 99 others); Mon, 19 Aug 2019 18:36:41 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:44864 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728435AbfHSWgl (ORCPT ); Mon, 19 Aug 2019 18:36:41 -0400 Received: by mail-ot1-f65.google.com with SMTP id w4so3209037ote.11; Mon, 19 Aug 2019 15:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=v/LwbD9loDDrhZ9x90qmsZdLimN0wXa2LzcUKgQfxQc=; b=EoDZczF5XYhNzKSOJKgZp4lVYMH6JteEpKYL23AgOlFpEt2C2Qg8DWoHCfMrhCKtgF m5EkayDhhIj81vaOqlT7gdwRsflgWI8deRMbWmGQAM8709SpBM6VzjZ4lfg9HIv2pGgZ pt655Gyb5tglMhXdqMxy0/COunKOq3Mk3AkV1Xcjl6Oh8GjhMaNZ/NX5DRqi15gd6t4q DT3/bR0rnvd76ZzmyoVa5z+6RL8gwqs0HD1uHzdQHfeZ9WGK4uTB5xyl6xxBziv81oJV owuL9bTO1SgBZnsLt+tEdpQukQt+ccv7zJU0NmR+FuuNjid3LRU6YvWgWj/1E0sDCZfE XdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=v/LwbD9loDDrhZ9x90qmsZdLimN0wXa2LzcUKgQfxQc=; b=g6TAqYdJCohfUK1mLuprB5lno/9lFUXktGbsama3oiqIXpHmbQCs+cEAAKLDMy/YcM xdcG42wkTGzrgBT9LPhBVnl3l1SKH1KgfZ458iBT/AE7esrcvDBw0VtZm1teLueJ++Yd bq1dEsaBRU/eov/4wyQgLQuO4xKhjC1f+CtzCBhvvV6MIuB85Fn3Ce5+ub4g8zUR5MYL VCcM1n3mPauCHqhB58cUqSCFg9ja84lgsrCFOqQ+m5nL4SlilRi24HugCOUKBKiExJFE 0BsZmtwuBD9Rh7VQSdhaYQP3QE0yr8gpJzAzw/vwHzpS4vGDmPwZJsbEWz05xY8i88N0 ftRQ== X-Gm-Message-State: APjAAAWTL7drtdfi/VxZp5ZDRlfDLkV+6PxP3EAnDuqPiwpY1MeEyVmu GWqdRB0E0OWGjwk9Cheircd5fZao X-Received: by 2002:a9d:591a:: with SMTP id t26mr17062173oth.170.1566254200348; Mon, 19 Aug 2019 15:36:40 -0700 (PDT) Received: from seurat29.1015granger.net ([12.235.16.3]) by smtp.gmail.com with ESMTPSA id v17sm4713375oif.1.2019.08.19.15.36.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 15:36:40 -0700 (PDT) Subject: [PATCH v2 01/21] SUNRPC: Remove rpc_wake_up_queued_task_on_wq() From: Chuck Lever To: anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org Date: Mon, 19 Aug 2019 18:36:19 -0400 Message-ID: <156625415896.8161.6772555466035123844.stgit@seurat29.1015granger.net> In-Reply-To: <156625401091.8161.14744201497689200191.stgit@seurat29.1015granger.net> References: <156625401091.8161.14744201497689200191.stgit@seurat29.1015granger.net> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Clean up: commit c544577daddb ("SUNRPC: Clean up transport write space handling") appears to have removed the last caller of rpc_wake_up_queued_task_on_wq(). Signed-off-by: Chuck Lever --- include/linux/sunrpc/sched.h | 3 --- net/sunrpc/sched.c | 27 ++++----------------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index baa3ecdb882f..d1283bddd218 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -243,9 +243,6 @@ void rpc_sleep_on_priority_timeout(struct rpc_wait_queue *queue, void rpc_sleep_on_priority(struct rpc_wait_queue *, struct rpc_task *, int priority); -void rpc_wake_up_queued_task_on_wq(struct workqueue_struct *wq, - struct rpc_wait_queue *queue, - struct rpc_task *task); void rpc_wake_up_queued_task(struct rpc_wait_queue *, struct rpc_task *); void rpc_wake_up_queued_task_set_status(struct rpc_wait_queue *, diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 1f275aba786f..f25c4b9ba185 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -541,33 +541,14 @@ rpc_wake_up_task_on_wq_queue_action_locked(struct workqueue_struct *wq, return NULL; } -static void -rpc_wake_up_task_on_wq_queue_locked(struct workqueue_struct *wq, - struct rpc_wait_queue *queue, struct rpc_task *task) -{ - rpc_wake_up_task_on_wq_queue_action_locked(wq, queue, task, NULL, NULL); -} - /* * Wake up a queued task while the queue lock is being held */ -static void rpc_wake_up_task_queue_locked(struct rpc_wait_queue *queue, struct rpc_task *task) +static void rpc_wake_up_task_queue_locked(struct rpc_wait_queue *queue, + struct rpc_task *task) { - rpc_wake_up_task_on_wq_queue_locked(rpciod_workqueue, queue, task); -} - -/* - * Wake up a task on a specific queue - */ -void rpc_wake_up_queued_task_on_wq(struct workqueue_struct *wq, - struct rpc_wait_queue *queue, - struct rpc_task *task) -{ - if (!RPC_IS_QUEUED(task)) - return; - spin_lock(&queue->lock); - rpc_wake_up_task_on_wq_queue_locked(wq, queue, task); - spin_unlock(&queue->lock); + rpc_wake_up_task_on_wq_queue_action_locked(rpciod_workqueue, queue, + task, NULL, NULL); } /*