Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3118051ybl; Mon, 19 Aug 2019 12:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuUfh0ROYAXpL/KHz7F8cHLH0Wvf6dPxxsHZelDggPh0mFaT7MyVDmRrM/sxU2ssugJmYv X-Received: by 2002:a63:2807:: with SMTP id o7mr21778390pgo.131.1566243042567; Mon, 19 Aug 2019 12:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566243042; cv=none; d=google.com; s=arc-20160816; b=s9VDguxqbypR4cEl39+XTNI2ABGXBIW4nLyjnsQ1yBRwWOgdEPWP1y9FpsmNSeJuRj UXohH/qnkcLycfqnU5MQamrKtGg58emJp7WI5MBL4ET8b6/RW5MFtAVuiQ6j7bpYfGUH kFrARLP5wKfeG0DokfmRrCl62kVYrhc4n4J+9ka1MKtpd3uL+JZU9x5C3BblNzTVuGCK 9mhBQAt0+MLasp2+vO7+bgSfd62AfjXkVSkDEtCYfc2HZxgMHSG+LciR5kYjc/bWT58o mXrftwlIDSRaKPnaY+B37C5+acglzwpc6NYILaK0VMBnvlpr5d1qrDjcvm6OJF4kMn6X jGxQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FTeskTxSL+DtGp0TXc7KVfC4/gZtxXq4wbGQc6DfmlI=; b=0RvNzni2nC3rXjAzGhpzVW0vCKXmtBke/8icoKGWU29nnY+qyYjcJRBiFu4ge6AV5T oLp+v41bSJH8AyNQvCIFOfebLJAj8VS9E2kytFICdmCX83z47cv3cTLlLWdGX+yuAo+6 tBFseU1VorXCNDKqb+kkGXZe1mnZ2aT2G2nLYUstuiTWVFBzD7Z3RZLj3QE/uD+f3jiL iQUD5O0vqICJ1jTCdvBDrpJNvl0uFUrVGZn5JpKeWzCdNL/FzomgB4vxYyiNsLRUqjpX o1dDIpNd/tvI7pl9EHEy9iebD26ldUeC3PK+AQeEDJE6qBikmvFBuZNxR+I9oRvnI7TA UaZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="qBVg/pTE"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94si10696783plf.221.2019.08.19.12.30.28; Mon, 19 Aug 2019 12:30:42 -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="qBVg/pTE"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbfHST3H (ORCPT + 99 others); Mon, 19 Aug 2019 15:29:07 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40409 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728415AbfHST3H (ORCPT ); Mon, 19 Aug 2019 15:29:07 -0400 Received: by mail-io1-f66.google.com with SMTP id t6so6844024ios.7 for ; Mon, 19 Aug 2019 12:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FTeskTxSL+DtGp0TXc7KVfC4/gZtxXq4wbGQc6DfmlI=; b=qBVg/pTEPso7o7LkHBouWY01sElYyq/GZynstc5n7WnEeLUTBePpiXOMrUvWbBZMTt hUfl7jci90IpL79DJmiE6Y/S5lp+sBx1WZoj5CrZW+37WRG9xp2YltfRobnfrLsspek8 H73Nvy5R8GUiRx80SFxvHtO8nfexItbGIX85rpFgj/K7S+s81DMLoXQZWevgdeDNKjfv Pk2aao/MVV1zxaA6E3nk2faublDo2fo+jhyNCq1IdN+EK73cR+bGutSvkrj3cqQKUbc2 3qN4F/I1YbNIq8eVru9wq3aKZZts/eEjC2yD5ErRklat82/nxfli4w77FZqO0pRUTiMu b6RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=FTeskTxSL+DtGp0TXc7KVfC4/gZtxXq4wbGQc6DfmlI=; b=lWdAzVBH+U0uVKM0YiFNcV5UHgG8EOyDokgc7hgvz/qCMsNxsEE+9JOvShfFQWUJvT 8ADpYTcKmwxLZ5tlgtfpjC4nUlRZxCi0jf6sK0WXhAn5waz5ujdpfbYP2n92jpcXyjCz IcnKQxRCFrwGvlbIrXj6M8k8QCJEUL/VVSDqrS6eS8Fl7MnsTwe3PejWArAPTdm6pJ5N CavCbfza3b6o8Et1YUIkWpo5Wl7izalvkCerNw9oL0xg6Qx/F04E9xF51GRcfyvrgng5 g3Y6OIjEu6yFpxWaIOZO7SbgTJTHCHkbHC+wk3LYN3WRKB65IPxzVvjpLf7dpLglVuSG UxyA== X-Gm-Message-State: APjAAAWt+GIGCzb4jwTFkPODbxuZK9Cz4kLBwHaBjCqQOC7Vfut3Jcfb 71pVHjpVoMTKJIFbKU0O5S0= X-Received: by 2002:a6b:7217:: with SMTP id n23mr15717401ioc.194.1566242946712; Mon, 19 Aug 2019 12:29:06 -0700 (PDT) Received: from gouda.nowheycreamery.com (d28-23-121-75.dim.wideopenwest.com. [23.28.75.121]) by smtp.gmail.com with ESMTPSA id v23sm16243957ioh.58.2019.08.19.12.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 12:29:06 -0700 (PDT) From: schumaker.anna@gmail.com X-Google-Original-From: Anna.Schumaker@Netapp.com To: Trond.Myklebust@hammerspace.com, linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [PATCH 5/6] NFS: Have nfs41_proc_secinfo_no_name() call nfs4_call_sync_custom() Date: Mon, 19 Aug 2019 15:28:59 -0400 Message-Id: <20190819192900.19312-6-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190819192900.19312-1-Anna.Schumaker@Netapp.com> References: <20190819192900.19312-1-Anna.Schumaker@Netapp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker We need to use the custom rpc_task_setup here to set the RPC_TASK_NO_ROUND_ROBIN flag on the RPC call. Signed-off-by: Anna Schumaker --- fs/nfs/nfs4proc.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 1b7863ec12d3..df12af8f6b36 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -9365,18 +9365,32 @@ _nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle, .rpc_resp = &res, }; struct rpc_clnt *clnt = server->client; + struct nfs4_call_sync_data data = { + .seq_server = server, + .seq_args = &args.seq_args, + .seq_res = &res.seq_res, + }; + struct rpc_task_setup task_setup = { + .rpc_client = server->client, + .rpc_message = &msg, + .callback_ops = server->nfs_client->cl_mvops->call_sync_ops, + .callback_data = &data, + .flags = RPC_TASK_NO_ROUND_ROBIN, + }; const struct cred *cred = NULL; int status; if (use_integrity) { clnt = server->nfs_client->cl_rpcclient; + task_setup.rpc_client = clnt; + cred = nfs4_get_clid_cred(server->nfs_client); msg.rpc_cred = cred; } dprintk("--> %s\n", __func__); - status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, - &res.seq_res, RPC_TASK_NO_ROUND_ROBIN); + nfs4_init_sequence(&args.seq_args, &res.seq_res, 0, 0); + status = nfs4_call_sync_custom(&task_setup); dprintk("<-- %s status=%d\n", __func__, status); put_cred(cred); -- 2.22.1