Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp117306lqd; Tue, 23 Apr 2024 17:20:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFM4KAbiy7V9YsbQ/5tPHYvxTjkwdSlJg7/qffaOcEqMqqjEd2XNpW8YLaiE9xCUiqcvMg35NdCO//ACZGg+rfpY7cfxsI/SuqM/8/Fg== X-Google-Smtp-Source: AGHT+IGzfIjqpyUtrs9OVxVGsm4K+UXOdXKGO//vFcYyPvAYK+xcg5jqN1j3YvqrO9VyMbs8LQ60 X-Received: by 2002:ac8:58d6:0:b0:434:fd7d:6dc7 with SMTP id u22-20020ac858d6000000b00434fd7d6dc7mr950397qta.50.1713918011167; Tue, 23 Apr 2024 17:20:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713918011; cv=pass; d=google.com; s=arc-20160816; b=QPcyN9hi2ZuT6GDtzvCRr6Nfm6N1MjdE0dKCMMvg2ZAwuvVrdeB0P4MIlN5Ook6tCv qFpExjF8+YWGkFJZQDgsL/qX63xcbOeLdTch+Vha9uCtrv40eOyJ9XBO0TImy7f413Th LpbYJUC7o8/HZx2lGVpLLAt1AIMa96Pq4cTIxXAamrwMjxeCvEZJYn7Lns4mAlkNONeG PS5f3mbpaPhPPzIRbHSRoHXlpM0z4aS7djlAcploy0/vPYXyaRvX2wIN0GIeDHzJufja zraWz56Y3uRN2g2Bfs5y6Qj1hPmEGn5zlwlMdbKQ5ooPXMY8zGDlZbHac8YqJehwLCIE CuNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:cc:to:from:subject:dkim-signature; bh=EBBWjttusMH0O3tOQpo75BmSIkVN8wtE4uW8XRceU8c=; fh=v8a13lpFSZWlL4AptTEJnmXnlqoWXhGCGCgvrcnCT9I=; b=iPVc8pv2oA2Jnc+BIR8f+6RIZ4o3SM7nynJxLHMYKD8pQizNd5q8lE8MPTp4SDBG5J 2ecV0CoOkSLoynnzoiB0QE5plq863k9gE4B7DA3XjfeEM/lmyOetpAQ3dGvAdzQqyrep CKoFy+KI8AebHOxsPpNmVveCLBzkPVuBJL9ZkJicdhzqvMLByLNoJ+buJ/gb/LD56e9h gbz05aNRpk607Wir/sTS3Hr1o/UFEUutbLHHrsGEJaOCePQIvb387fR9r07qwkTcE6Oy gDplLsxIOaLReNJznMbQoNZ364owmcSb8Nt6nSuQKjTY0wmtOJPf0FM8g+vsnBlRwGMW BumQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5HtykLd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m22-20020a05622a119600b0043a19529799si509001qtk.138.2024.04.23.17.20.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 17:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5HtykLd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CBB951C21A20 for ; Wed, 24 Apr 2024 00:20:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D8D7FF; Wed, 24 Apr 2024 00:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R5HtykLd" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF7237EF for ; Wed, 24 Apr 2024 00:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713918009; cv=none; b=ujylyotdAdUbtbXt2IHEWEQeCt3F8tg7WIze/yMFqO0Xs5zaDgrePB1g28Vhsy2K2n+Qm8VLVnE8cf3725Cy5TUTDKHx7tsgUlCpLUCBiT+d/Cnm6K216LtCsl82ZZSmSRWnvnchAMF4BEAKNralROPhi65+MA8SHl/bxrNx0r0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713918009; c=relaxed/simple; bh=TNUmONbsXgwdI8lXRxiSNutmUSx36X9bNyjths3t8dI=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LNccl12Py+S9J2vATXZdyaSx+JqilfKOPC6W4v8VOJPHCCgv05oiaDuUGDwh0IxESivXh47cV7qadygChiNAJD3z6TgBc3t0BqMxSc83GzPUnYdoxCpdjFcRVRdbpab0UE5NubHpYL8nmiGUx/uMZQ7Dd1ouOfxl/ObR+Lp657E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R5HtykLd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EB2DC116B1; Wed, 24 Apr 2024 00:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713918009; bh=TNUmONbsXgwdI8lXRxiSNutmUSx36X9bNyjths3t8dI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=R5HtykLdO/Fypw9MRRZn18Qp1bEPdB8xtZlOpG8T93dkFhUCxG6tFta5g4zvjinwN RgrifciWrBrsl0/3ggkZpPrEZKicWCU9FplrMYYNnTtPeu7g6UkdwTepOCa7Aebyoj bZHoV6CrPcl4YDKCbAnh2U8tnW6SyIX7YpXLtxS0PJhpA+o7bWblJVttujs8a5LAlJ lP1pf3ztJxK+hoRdflemqHMD5/mNVIvFhXtgImRhjidAV8amktOBsStP7HYaRku1+E WDFuL7wRxzjaEPa5CEYO+kwRj4/nKCpuTl7dAiZGFYMImBZKYGBD75EDsw1td2a/oA Vn6K7NXmcSNYg== Subject: [PATCH 2/2] Revert "NFSD: Convert the callback workqueue to use delayed_work" From: Chuck Lever To: linux-nfs@vger.kernel.org Cc: Chuck Lever Date: Tue, 23 Apr 2024 20:20:08 -0400 Message-ID: <171391800819.101038.12426618606693057125.stgit@klimt.1015granger.net> In-Reply-To: <171391782806.101038.14694256680827795210.stgit@klimt.1015granger.net> References: <171391782806.101038.14694256680827795210.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: Chuck Lever This commit was a pre-requisite for commit c1ccfcf1a9bf ("NFSD: Reschedule CB operations when backchannel rpc_clnt is shut down"), which has already been reverted. Signed-off-by: Chuck Lever --- fs/nfsd/nfs4callback.c | 6 +++--- fs/nfsd/state.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index d153af81f406..6aff46701aa1 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -983,7 +983,7 @@ static struct workqueue_struct *callback_wq; static bool nfsd4_queue_cb(struct nfsd4_callback *cb) { trace_nfsd_cb_queue(cb->cb_clp, cb); - return queue_delayed_work(callback_wq, &cb->cb_work, 0); + return queue_work(callback_wq, &cb->cb_work); } static void nfsd41_cb_inflight_begin(struct nfs4_client *clp) @@ -1482,7 +1482,7 @@ static void nfsd4_run_cb_work(struct work_struct *work) { struct nfsd4_callback *cb = - container_of(work, struct nfsd4_callback, cb_work.work); + container_of(work, struct nfsd4_callback, cb_work); struct nfs4_client *clp = cb->cb_clp; struct rpc_clnt *clnt; int flags; @@ -1528,7 +1528,7 @@ void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp, cb->cb_msg.rpc_argp = cb; cb->cb_msg.rpc_resp = cb; cb->cb_ops = ops; - INIT_DELAYED_WORK(&cb->cb_work, nfsd4_run_cb_work); + INIT_WORK(&cb->cb_work, nfsd4_run_cb_work); cb->cb_status = 0; cb->cb_need_restart = false; cb->cb_holds_slot = false; diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 01c6f3445646..2ed0fcf879fd 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -68,7 +68,7 @@ struct nfsd4_callback { struct nfs4_client *cb_clp; struct rpc_message cb_msg; const struct nfsd4_callback_ops *cb_ops; - struct delayed_work cb_work; + struct work_struct cb_work; int cb_seq_status; int cb_status; bool cb_need_restart;